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

Full log


View this message in rfc822 format

From: "Luke (gmail)" <luke.kendall <at> gmail.com>
To: 62515 <at> debbugs.gnu.org
Subject: bug#62515: 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 2 years and 85 days ago.

Previous Next


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