coreutils/tests/pr
Pádraig Brady 1f93c96339 pr: fix so that LAST_PAGE is honored with -T
Ever since the LAST_PAGE functionality was added
in commit ed0923a1, 1996-12-05,
"Apply big patch (patch-20) from Roland Huebner"
it was ignored when -t or -T were specified or
when -l <= 10.

* src/pr.c (print_page): Increment the current page here.
(print_header): Don't increment the current page here.
* tests/pr/pr-tests: Add a test case.
* NEWS: Mention the fix

Reported at http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9347
2011-08-24 00:21:17 +01:00
..
0F Adjust to minor spacing changes in pr headers. 2001-03-17 08:49:25 +00:00
0FF Adjust to minor spacing changes in pr headers. 2001-03-17 08:49:25 +00:00
0FFnt . 1996-12-28 05:14:37 +00:00
0FFt . 1996-12-28 05:14:37 +00:00
0FnFnt . 1996-12-28 05:14:37 +00:00
0FnFt . 1996-12-28 05:14:37 +00:00
0Fnt . 1996-12-28 05:14:37 +00:00
0Ft . 1996-12-28 05:14:37 +00:00
2-S_f-t_notab pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
2-Sf-t_notab pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
2f-t_notab pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
2s_f-t_notab pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
2s_w60f-t_nota pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
2sf-t_notab pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
2sw60f-t_notab pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
2w60f-t_notab pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
3-0F Adjust to minor spacing changes in pr headers. 2001-03-17 08:49:25 +00:00
3-5l24f-t pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
3-FF Adjust to minor spacing changes in pr headers. 2001-03-17 08:49:25 +00:00
3a2l17-FF Adjust to minor spacing changes in pr headers. 2001-03-17 08:49:25 +00:00
3a3f-0F pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
3a3l15-t Adjust to minor spacing changes in pr headers. 2001-03-17 08:49:25 +00:00
3a3l15f-t pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
3b2l17-FF Adjust to minor spacing changes in pr headers. 2001-03-17 08:49:25 +00:00
3b3f-0F pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
3b3f-0FF pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
3b3f-FF pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
3b3l15-t Adjust to minor spacing changes in pr headers. 2001-03-17 08:49:25 +00:00
3b3l15f-t pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
3f-0F pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
3f-FF pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
3l24-t Adjust to minor spacing changes in pr headers. 2001-03-17 08:49:25 +00:00
3l24f-t pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
3ml24-FF Adjust to minor spacing changes in pr headers. 2001-03-17 08:49:25 +00:00
3ml24-t Adjust to minor spacing changes in pr headers. 2001-03-17 08:49:25 +00:00
3ml24-t-FF Adjust to minor spacing changes in pr headers. 2001-03-17 08:49:25 +00:00
3ml24f-t pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
4-7l24-FF Adjust to minor spacing changes in pr headers. 2001-03-17 08:49:25 +00:00
4l24-FF Adjust to minor spacing changes in pr headers. 2001-03-17 08:49:25 +00:00
a2l15-FF Adjust to minor spacing changes in pr headers. 2001-03-17 08:49:25 +00:00
a2l17-FF Adjust to minor spacing changes in pr headers. 2001-03-17 08:49:25 +00:00
a3-0F Adjust to minor spacing changes in pr headers. 2001-03-17 08:49:25 +00:00
a3f-0F pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
a3f-0FF pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
a3f-FF pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
a3l15-t Adjust to minor spacing changes in pr headers. 2001-03-17 08:49:25 +00:00
a3l15f-t pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
a3l24f-lm pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
b2l15-FF Adjust to minor spacing changes in pr headers. 2001-03-17 08:49:25 +00:00
b2l17-FF Adjust to minor spacing changes in pr headers. 2001-03-17 08:49:25 +00:00
b3-0F Adjust to minor spacing changes in pr headers. 2001-03-17 08:49:25 +00:00
b3f-0F pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
b3f-0FF pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
b3f-FF pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
b3l15-t Adjust to minor spacing changes in pr headers. 2001-03-17 08:49:25 +00:00
b3l15f-t pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
b3l24f-lm pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
FF Adjust to minor spacing changes in pr headers. 2001-03-17 08:49:25 +00:00
FFn . 1996-12-28 05:14:37 +00:00
FFtn . 1996-12-28 05:14:37 +00:00
FnFn . 1996-12-28 05:14:37 +00:00
Ja3l24f-lm pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
Jb3l24f-lm pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
Jml24f-lm-lo pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
l24-FF Adjust to minor spacing changes in pr headers. 2001-03-17 08:49:25 +00:00
l24-t Adjust to minor spacing changes in pr headers. 2001-03-17 08:49:25 +00:00
l24f-t pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
loli . 1996-12-28 05:14:37 +00:00
ml20-FF-t Adjust to minor spacing changes in pr headers. 2001-03-17 08:49:25 +00:00
ml24-FF Adjust to minor spacing changes in pr headers. 2001-03-17 08:49:25 +00:00
ml24-t Adjust to minor spacing changes in pr headers. 2001-03-17 08:49:25 +00:00
ml24-t-FF Adjust to minor spacing changes in pr headers. 2001-03-17 08:49:25 +00:00
ml24f-0F pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
ml24f-lm-lo pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
ml24f-t pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
ml24f-t-0F pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
n+2-5l24f-0FF pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
n+2l24f-0FF pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
n+2l24f-bl pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
n+3-7l24-FF Adjust to minor spacing changes in pr headers. 2001-03-17 08:49:25 +00:00
n+3l24f-0FF pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
n+3l24f-bl pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
n+3ml20f-bl-FF pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
n+3ml24f-bl-tn pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
n+3ml24f-tn-bl pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
n+4-8a2l17-FF Adjust to minor spacing changes in pr headers. 2001-03-17 08:49:25 +00:00
n+4b2l17f-0FF pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
n+5-8b3l17f-FF pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
n+5a3l13f-0FF pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
n+6a2l17-FF Adjust to minor spacing changes in pr headers. 2001-03-17 08:49:25 +00:00
n+6b3l13f-FF pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
n+7l24-FF Adjust to minor spacing changes in pr headers. 2001-03-17 08:49:25 +00:00
n+8l20-FF Adjust to minor spacing changes in pr headers. 2001-03-17 08:49:25 +00:00
nJml24f-lmlmlo pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
nJml24f-lmlolm pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
nl24f-bl pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
nN1+3l24f-bl pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
nN15l24f-bl pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
nSml20-bl-FF pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
nSml20-t-t-FF pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
nSml20-t-tFFFF pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
nSml24-bl-FF pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
nSml24-t-t-FF pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
nSml24-t-tFFFF pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
o3a3l24f-tn pr: fix a bug whereby --indent=N (-o) did not indent header lines 2009-03-07 23:52:08 +01:00
o3a3Sl24f-tn pr: fix a bug whereby --indent=N (-o) did not indent header lines 2009-03-07 23:52:08 +01:00
o3a3Snl24f-tn pr: fix a bug whereby --indent=N (-o) did not indent header lines 2009-03-07 23:52:08 +01:00
o3b3l24f-tn pr: fix a bug whereby --indent=N (-o) did not indent header lines 2009-03-07 23:52:08 +01:00
o3b3Sl24f-tn pr: fix a bug whereby --indent=N (-o) did not indent header lines 2009-03-07 23:52:08 +01:00
o3b3Snl24f-tn pr: fix a bug whereby --indent=N (-o) did not indent header lines 2009-03-07 23:52:08 +01:00
o3Jml24f-lm-lo pr: fix a bug whereby --indent=N (-o) did not indent header lines 2009-03-07 23:52:08 +01:00
o3ml24f-bl-tn pr: fix a bug whereby --indent=N (-o) did not indent header lines 2009-03-07 23:52:08 +01:00
o3mSl24f-bl-tn pr: fix a bug whereby --indent=N (-o) did not indent header lines 2009-03-07 23:52:08 +01:00
o3mSnl24fbltn pr: fix a bug whereby --indent=N (-o) did not indent header lines 2009-03-07 23:52:08 +01:00
pr-tests pr: fix so that LAST_PAGE is honored with -T 2011-08-24 00:21:17 +01:00
t_notab new tests from Roland 1999-04-15 13:26:50 +00:00
t_tab new tests from Roland 1999-04-15 13:26:50 +00:00
t_tab_ new tests from Roland 1999-04-15 13:26:50 +00:00
t-0FF . 1996-12-28 05:14:37 +00:00
t-bl . 1996-12-28 05:14:37 +00:00
t-FF . 1996-12-28 05:14:37 +00:00
t-t . 1996-12-28 05:14:37 +00:00
ta3-0FF new tests from Roland 1999-04-15 13:26:50 +00:00
ta3-FF new tests from Roland 1999-04-15 13:26:50 +00:00
tb3-0FF new tests from Roland 1999-04-15 13:26:50 +00:00
tb3-FF new tests from Roland 1999-04-15 13:26:50 +00:00
tFFn . 1996-12-28 05:14:37 +00:00
tFFt . 1996-12-28 05:14:37 +00:00
tFFt-bl . 1996-12-28 05:14:37 +00:00
tFFt-ll new tests from Roland 1999-04-15 13:26:50 +00:00
tFFt-lm . 1996-12-28 05:14:37 +00:00
tFnFt . 1996-12-28 05:14:37 +00:00
tn . 1996-12-28 05:14:37 +00:00
tn2e5o3-t_tab new tests from Roland 1999-04-15 13:26:50 +00:00
tn2e8-t_tab new tests from Roland 1999-04-15 13:26:50 +00:00
tn2e8o3-t_tab new tests from Roland 1999-04-15 13:26:50 +00:00
tn_2e8-t_tab new tests from Roland 1999-04-15 13:26:50 +00:00
tn_2e8S-t_tab new tests from Roland 1999-04-15 13:26:50 +00:00
tne8-t_tab new tests from Roland 1999-04-15 13:26:50 +00:00
tne8o3-t_tab new tests from Roland 1999-04-15 13:26:50 +00:00
tt-0FF renamed from T- versions to avoid name-clashes on case-indep filesystems 1997-02-16 19:08:01 +00:00
tt-bl renamed from T- versions to avoid name-clashes on case-indep filesystems 1997-02-16 19:08:01 +00:00
tt-FF renamed from T- versions to avoid name-clashes on case-indep filesystems 1997-02-16 19:08:01 +00:00
tt-t renamed from T- versions to avoid name-clashes on case-indep filesystems 1997-02-16 19:08:01 +00:00
tta3-0FF new tests from Roland 1999-04-15 13:26:50 +00:00
tta3-FF new tests from Roland 1999-04-15 13:26:50 +00:00
ttb3-0FF new tests from Roland 1999-04-15 13:26:50 +00:00
ttb3-FF new tests from Roland 1999-04-15 13:26:50 +00:00
w72l24f-ll pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
W20l24f-ll pr: ensure the page header line is of the required format 2010-01-06 21:07:23 -07:00
W26l24f-ll pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
W27l24f-ll pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
W28l24f-ll pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
W35a3l24f-lm pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
W35b3l24f-lm pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
W35Ja3l24f-lm pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
W35Jb3l24f-lm pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
W35Jml24f-lmlo pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
W35ml24f-lm-lo pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
W72Jl24f-ll pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00
W-72l24f-ll pr -F no longer suppresses the footer or the first two blank header lines 2007-07-04 12:45:10 +02:00