1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-21 03:12:48 +02:00
Files
coreutils/tests/pr/nSml24-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

136 lines
4.9 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
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
-- Date/Time -- x Page 2
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 :--: :--:
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 :--: :--:
-- Date/Time -- x Page 3
29.29 xyzxyzxyz X:--:29 xyzxyzxyz X:--:15 xyzxyzxyz X:--:15 xyzxyzxyz X
30.30 456789 1234:--:30 456789 1234:--:16 456789 1234:--:16 456789 1234
31.1 :--:1 :--:7 :--:7
32.2 3456789 abcd:--:2 3456789 abcd:--:8 :--:8
33.3 :--:3 :--:9 3456789 ab :--:9 3456789 ab
34.4 :--:4 :--:20 DEFGHI 123 :--:20 DEFGHI 123
35.5 :--:5 :--:1 :--:1
36.6 :--:6 :--:2 :--:2
37.7 :--:7 :--:3 :--:3
38.8 :--:8 :--:4 :--:4
39.9 3456789 abcd:--:9 3456789 abcd:--:5 :--:5
40.40 DEFGHI 1234:--:40 DEFGHI 1234:--:6 :--:6
41.41 yzxyzxyz XY:--:41 yzxyzxyz XY:--:27 no truncati:--:27 no truncati
42.42 456789 1234:--:42 456789 1234:--:28 no trunc :--:28 no trunc
-- Date/Time -- x Page 4
43.43 xyzxyzxyz X:--:43 xyzxyzxyz X:--: :--:
44.44 456789 1234:--:44 456789 1234:--: :--:
45.5 :--:5 :--: :--:
46.6 :--:6 :--: :--:
47.7 :--:7 :--: :--:
48.8 :--:8 :--: :--:
49.9 :--:9 :--: :--:
50.50 :--:50 :--: :--:
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:--: :--:
-- Date/Time -- x Page 5
57.57 xyzxyzxyz X:--:57 xyzxyzxyz X:--:29 xyzxyzxyz X:--:29 xyzxyzxyz X
58.58 456789 1234:--:58 456789 1234:--:30 456789 1234:--:30 456789 1234
59.9 :--:9 :--:1 :--:1
60.60 DEFGHI 1234:--:60 DEFGHI 1234:--:2 3456789 abcd:--:2 3456789 abcd
61.1 :--:1 :--:3 :--:3
62.2 :--:2 :--:4 :--:4
63.3 ------- EOF:--:3 ------- EOF:--:5 :--:5
64. :--: :--:6 :--:6
65. :--: :--:7 :--:7
66. :--: :--:8 :--:8
67. :--: :--:9 3456789 abcd:--:9 3456789 abcd
68. :--: :--:40 DEFGHI 1234:--:40 DEFGHI 1234
69. :--: :--:41 yzxyzxyz XY:--:41 yzxyzxyz XY
70. :--: :--:42 456789 1234:--:42 456789 1234
-- Date/Time -- x Page 6
-- Date/Time -- x Page 7
-- Date/Time -- x Page 8
71. :--: :--:43 xyzxyzxyz X:--:43 xyzxyzxyz X
72. :--: :--:44 456789 1234:--:44 456789 1234
73. :--: :--:5 :--:5
74. :--: :--:6 :--:6
75. :--: :--:7 :--:7
76. :--: :--:8 :--:8
77. :--: :--:9 :--:9
78. :--: :--:50 :--:50
79. :--: :--:1 :--:1
80. :--: :--:2 :--:2
81. :--: :--:3 :--:3
82. :--: :--:4 :--:4
83. :--: :--:55 yzxyzxyz XY:--:55 yzxyzxyz XY
84. :--: :--:56 456789 1234:--:56 456789 1234
-- Date/Time -- x Page 9
85. :--: :--:57 xyzxyzxyz X:--:57 xyzxyzxyz X
86. :--: :--:58 456789 1234:--:58 456789 1234
87. :--: :--:9 :--:9
88. :--: :--:60 DEFGHI 1234:--:60 DEFGHI 1234