GNU bug report logs - #47243
pr lacks -p

Previous Next

Package: coreutils;

Reported by: Eric Blake <eblake <at> redhat.com>

Date: Thu, 18 Mar 2021 15:39:01 UTC

Severity: wishlist

Full log


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

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Pádraig Brady <P <at> draigBrady.com>,
 Collin Funk <collin.funk1 <at> gmail.com>
Cc: 47243 <at> debbugs.gnu.org
Subject: Re: bug#47243: pr lacks -p
Date: Wed, 30 Jul 2025 10:31:51 -0700
On 2025-07-30 04:18, Pádraig Brady wrote:
> I'd have a slight preference for _not_ gating the isatty(STDOUT) check 
> on $POSIXLY_CORRECT.
> We generally only use $POSIXLY_CORRECT to gate incompatible behavior.

Sure, but don't the GNU coding standards disagree with POSIX here? If we 
follow the GNU coding standards with respect to stdout, then we need a 
POSIXLY_CORRECT check.

Or are you suggesting that we disregard the coding standards and follow 
POSIX instead? That would be a reasonable suggestion but we might want 
to ask RMS about it.

While I'm bikeshedding :-), one other thought is that if POSIXLY_CORRECT 
is not set we could also be compatible with FreeBSD, and output a bell 
before the first page if -f is specified but -p is not. I suspect that 
this is a more-useful approach (and could well be what System V did, and 
we've merely exposed a bug in POSIX here).




This bug report was last modified 8 days ago.

Previous Next


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