bug#47243: pr lacks -p

Paul Eggert <[email protected]>
Newsgroups gmane.comp.gnu.core-utils.bugs
Organization UCLA Computer Science Department
Message-ID <[email protected]>
On 2025-07-27 17:19, Paul Eggert wrote:
> +          putc ('\a', stderr);

A few more things.

stderr might be line buffered, so this needs an fflush afterwards.

If the putc or fflush fails, pr should diagnose and exit immediately 
(otherwise the user will wonder why pr stopped).

A failed open or read from /dev/tty should be diagnosed and exited too.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.