GNU bug report logs - #62515
Bug in pr

Previous Next

Package: coreutils;

Reported by: "Luke (gmail)" <luke.kendall <at> gmail.com>

Date: Wed, 29 Mar 2023 08:12:02 UTC

Severity: normal

To reply to this bug, email your comments to 62515 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#62515; Package coreutils. (Wed, 29 Mar 2023 08:12:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Luke (gmail)" <luke.kendall <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Wed, 29 Mar 2023 08:12:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Luke (gmail)" <luke.kendall <at> gmail.com>
To: bug-coreutils <at> gnu.org
Subject: Bug in pr
Date: Wed, 29 Mar 2023 15:38:45 +1100
When the page length is less than 10, pr does not output a header, even 
one that is explicitly supplied.

Stated another way, when page length is <= 10, there is no way to 
counter implicit -t/-T.

Stated another way, -t/-T always (silently) overrides -h, and there is 
no option to force a header.

This is in $ pr --version
pr (GNU coreutils) 8.32
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
<https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Pete TerMaat and Roland Huebner.


Example to reproduce:

$ printf "a\nb\nc\nd\\ne\n" | pr -l 3 -h "---"
a
b
c
d
e


luke





This bug report was last modified 1 year and 240 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.