Subject: Re: bug#47243: pr lacks -p

From: Paul Eggert <[email-masked]>
Date: Sun, 27 Jul 2025 17:26:24 -0700

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.