1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-20 02:36:16 +02:00
Files
coreutils/tests/pr/nSml20-t-tFFFF
Paul Eggert 36ce675bb4 pr -F no longer suppresses the footer or the first two blank header lines
Here's a patch along the lines of
<http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10849/focus=10857>.
It's a bit large since it changes the test cases to match the behavior,
and the test cases' file names depend on the behavior!

* NEWS: pr -F no longer suppresses the footer or the first two blank
lines in the header.
* doc/coreutils.texi (pr invocation): Likewise.  Also, a too-short
page length implies -t, not -T.
* src/pr.c (lines_per_header, lines_per_footer): Now constants.
(init_parameters): Don't try to change them.
(print_header): Use the same header and footer format regardless of
wither form feeds are being used.
(usage): Adjust to above change when describing too-short page length.
Too-short page length impliesy -t, not -T.
* tests/pr/2-S_f-t_notab: Adjust to the fact that -F now affects
only formfeed handling; it does not change the header.
* tests/pr/2-Sf-t_notab: Likewise.
...
* tests/pr/3-5l17f-t: Remove, since it's been renamed to another
file whose name has a line count 7 larger,
reflecting the new line count needed for this behavior.
* tests/pr/3a3l8f-t: Likewise.
...
* tests/pr/w72l24f-ll: Likewise.

Signed-off-by: Jim Meyering <jim@meyering.net>
2007-07-04 12:45:10 +02:00

160 lines
5.4 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- Date/Time -- x Page 1
1.1 Test-INPUT:--:1 Test-INPUT:--:1 FF-Test: F:--:1 FF-Test: F
2.2 Options -b:--:2 Options -b:--:2 Options -b:--:2 Options -b
3.3 Options -a:--:3 Options -a:--:3 ----------:--:3 ----------
4.4 Options :--:4 Options :--:4 3456789 1234:--:4 3456789 1234
5.5 :--:5 :--:5 3 Columns :--:5 3 Columns
6.6 ----------:--:6 ----------:--:6 FF-Arangem:--:6 FF-Arangem
7.7 3456789 1234:--:7 3456789 1234:--:7 text\f\f\n:--:7 text\f\f\n
8.8 3 Columns :--:8 3 Columns :--:8 \f\f\n; \f:--:8 \f\f\n; \f
9.9 With colum:--:9 With colum:--:9 :--:9
10.10 without -f:--:10 without -f:--:10 zzzzzzzzzz:--:10 zzzzzzzzzz
-- Date/Time -- x Page 2
11.1 with -f e.:--:1 with -f e.:--:1 :--:1
12.2 :--:2 :--:2 :--:2
13.3 line truncat:--:3 line truncat:--:3 line truncat:--:3 line truncat
14.14 456789 1234:--:14 456789 1234:--:14 456789 1234:--:14 456789 1234
15.15 xyzxyzxyz X:--:15 xyzxyzxyz X:--: :--:
16.16 456789 1234:--:16 456789 1234:--: :--:
17.7 :--:7 :--: :--:
18.8 :--:8 :--: :--:
19.9 3456789 ab :--:9 3456789 ab :--: :--:
20.20 DEFGHI 123 :--:20 DEFGHI 123 :--: :--:
-- Date/Time -- x Page 3
21.1 :--:1 :--: :--:
22.2 :--:2 :--: :--:
23.3 :--:3 :--: :--:
24.4 :--:4 :--: :--:
25.5 :--:5 :--: :--:
26.6 :--:6 :--: :--:
27.27 no truncati:--:27 no truncati:--: :--:
28.28 no trunc :--:28 no trunc :--: :--:
29.29 xyzxyzxyz X:--:29 xyzxyzxyz X:--: :--:
30.30 456789 1234:--:30 456789 1234:--: :--:
-- Date/Time -- x Page 4
31.1 :--:1 :--:15 xyzxyzxyz X:--:15 xyzxyzxyz X
32.2 3456789 abcd:--:2 3456789 abcd:--:16 456789 1234:--:16 456789 1234
33.3 :--:3 :--:7 :--:7
34.4 :--:4 :--:8 :--:8
35.5 :--:5 :--:9 3456789 ab :--:9 3456789 ab
36.6 :--:6 :--:20 DEFGHI 123 :--:20 DEFGHI 123
37.7 :--:7 :--:1 :--:1
38.8 :--:8 :--:2 :--:2
39.9 3456789 abcd:--:9 3456789 abcd:--:3 :--:3
40.40 DEFGHI 1234:--:40 DEFGHI 1234:--:4 :--:4
-- Date/Time -- x Page 5
41.41 yzxyzxyz XY:--:41 yzxyzxyz XY:--:5 :--:5
42.42 456789 1234:--:42 456789 1234:--:6 :--:6
43.43 xyzxyzxyz X:--:43 xyzxyzxyz X:--:27 no truncati:--:27 no truncati
44.44 456789 1234:--:44 456789 1234:--:28 no trunc :--:28 no trunc
45.5 :--:5 :--: :--:
46.6 :--:6 :--: :--:
47.7 :--:7 :--: :--:
48.8 :--:8 :--: :--:
49.9 :--:9 :--: :--:
50.50 :--:50 :--: :--:
-- Date/Time -- x Page 6
51.1 :--:1 :--: :--:
52.2 :--:2 :--: :--:
53.3 :--:3 :--: :--:
54.4 :--:4 :--: :--:
55.55 yzxyzxyz XY:--:55 yzxyzxyz XY:--: :--:
56.56 456789 1234:--:56 456789 1234:--: :--:
57.57 xyzxyzxyz X:--:57 xyzxyzxyz X:--: :--:
58.58 456789 1234:--:58 456789 1234:--: :--:
59.9 :--:9 :--: :--:
60.60 DEFGHI 1234:--:60 DEFGHI 1234:--: :--:
-- Date/Time -- x Page 7
61.1 :--:1 :--:29 xyzxyzxyz X:--:29 xyzxyzxyz X
62.2 :--:2 :--:30 456789 1234:--:30 456789 1234
63.3 ------- EOF:--:3 ------- EOF:--:1 :--:1
64. :--: :--:2 3456789 abcd:--:2 3456789 abcd
65. :--: :--:3 :--:3
66. :--: :--:4 :--:4
67. :--: :--:5 :--:5
68. :--: :--:6 :--:6
69. :--: :--:7 :--:7
70. :--: :--:8 :--:8
-- Date/Time -- x Page 8
71. :--: :--:9 3456789 abcd:--:9 3456789 abcd
72. :--: :--:40 DEFGHI 1234:--:40 DEFGHI 1234
73. :--: :--:41 yzxyzxyz XY:--:41 yzxyzxyz XY
74. :--: :--:42 456789 1234:--:42 456789 1234
-- Date/Time -- x Page 9
-- Date/Time -- x Page 10
-- Date/Time -- x Page 11
75. :--: :--:43 xyzxyzxyz X:--:43 xyzxyzxyz X
76. :--: :--:44 456789 1234:--:44 456789 1234
77. :--: :--:5 :--:5
78. :--: :--:6 :--:6
79. :--: :--:7 :--:7
80. :--: :--:8 :--:8
81. :--: :--:9 :--:9
82. :--: :--:50 :--:50
83. :--: :--:1 :--:1
84. :--: :--:2 :--:2
-- Date/Time -- x Page 12
85. :--: :--:3 :--:3
86. :--: :--:4 :--:4
87. :--: :--:55 yzxyzxyz XY:--:55 yzxyzxyz XY
88. :--: :--:56 456789 1234:--:56 456789 1234
-- Date/Time -- x Page 13
89. :--: :--:57 xyzxyzxyz X:--:57 xyzxyzxyz X
90. :--: :--:58 456789 1234:--:58 456789 1234
91. :--: :--:9 :--:9
92. :--: :--:60 DEFGHI 1234:--:60 DEFGHI 1234