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.