]> git.ipfire.org Git - thirdparty/coreutils.git/commit
pr: promptly diagnose write errors
authorPádraig Brady <P@draigBrady.com>
Wed, 22 Oct 2025 17:13:48 +0000 (18:13 +0100)
committerPádraig Brady <P@draigBrady.com>
Wed, 22 Oct 2025 18:11:37 +0000 (19:11 +0100)
commitc5b147fabfa7bb99a0f940ed84c65233554db55d
treed7f038fffe5d221b08db8064b89c242b62a86eb5
parent9415cf01c639788e414f63f7ae5e0231844df6d8
pr: promptly diagnose write errors

* src/pr.c (print_page): Exit promptly for `yes | pr`.
(print_clump): Exit promptly for `pr < /dev/zero`.
* tests/misc/write-errors.sh: Enable test cases.
* NEWS: Mention the improvement.
NEWS
src/pr.c
tests/misc/write-errors.sh