bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#62515: Bug in pr


From: Luke (gmail)
Subject: bug#62515: Bug in pr
Date: Wed, 29 Mar 2023 15:38:45 +1100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.24) Gecko/20101027 Thunderbird/2.0.0.24 Mnenhy/0.7.6.666

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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]