bug-coreutils@gnu.org mirror (unofficial)
 help / color / mirror / Atom feed
From: "Luke (gmail)" <luke.kendall@gmail.com>
To: 62515@debbugs.gnu.org
Subject: bug#62515: Bug in pr
Date: Wed, 29 Mar 2023 15:38:45 +1100	[thread overview]
Message-ID: <40d7e24e-6ba3-6a1c-ba71-f1c25de1179b@gmail.com> (raw)

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	other threads:[~2023-03-29  8:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://lists.gnu.org/mailman/listinfo/bug-coreutils

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=40d7e24e-6ba3-6a1c-ba71-f1c25de1179b@gmail.com \
    --to=luke.kendall@gmail.com \
    --cc=62515@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).