mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-04-21 03:12:48 +02:00
uniq: promptly diagnose write errors
* src/uniq.c (write_line): Check the output from fwrite() immediately. (check_file): Likewise. * tests/misc/write-errors.sh: Enable the test case. * NEWS: Mention the improvement.
This commit is contained in:
@@ -46,7 +46,7 @@ tail -n+1 -z /dev/zero
|
||||
tee < /dev/zero
|
||||
tr . . < /dev/zero
|
||||
unexpand /dev/zero
|
||||
# TODO: uniq -z -D /dev/zero
|
||||
uniq -z -D /dev/zero
|
||||
yes
|
||||
" |
|
||||
sort -k 1b,1 > all_writers || framework_failure_
|
||||
|
||||
Reference in New Issue
Block a user