mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-04-20 18:56:39 +02:00
fmt: promptly diagnose write errors
* NEWS: Mention the improvement. * src/fmt.c (put_line): Exit if any error writing line. (flush_paragraph): Exit if any error writing buffer. * tests/misc/write-errors.sh: Enable the (flush_paragraph) test case, and add another to check the put_line() case.
This commit is contained in:
@@ -33,7 +33,8 @@ cut -z -f1- /dev/zero
|
||||
dd if=/dev/zero
|
||||
expand /dev/zero
|
||||
factor --version; yes 1 | factor
|
||||
# TODO: fmt /dev/zero
|
||||
fmt /dev/zero
|
||||
fmt --version; yes | fmt
|
||||
fold /dev/zero
|
||||
fold -b /dev/zero
|
||||
fold -c /dev/zero
|
||||
|
||||
Reference in New Issue
Block a user