]> git.ipfire.org Git - thirdparty/coreutils.git/commit
wc: promptly diagnose write errors
authorPádraig Brady <P@draigBrady.com>
Fri, 9 Jan 2026 14:16:04 +0000 (14:16 +0000)
committerPádraig Brady <P@draigBrady.com>
Sat, 10 Jan 2026 01:04:33 +0000 (01:04 +0000)
commit83f274feaa84f709a8da7b137ec0353e87c4a4c8
tree87151c630b181f2364e415aa33ca7c0db7e799ed
parentb34e329f75c10e47d8a539075a4c6ca09277d401
wc: promptly diagnose write errors

* src/wc.c (write_counts): Call write_error() if any pending errors.
* tests/misc/write-errors.sh: Add a test case.
* NEWS: Mention the improvement.
NEWS
src/wc.c
tests/misc/write-errors.sh