yes: avoid redundant diagnostics on write error
commit0f5d784bc6c8f63be70cffeaaa88aaca740c3bf6
authorPádraig Brady <P@draigBrady.com>
Mon, 4 Apr 2016 12:17:34 +0000 (4 13:17 +0100)
committerPádraig Brady <P@draigBrady.com>
Thu, 21 Apr 2016 20:34:00 +0000 (21 21:34 +0100)
tree00970cc61ea104fdb908a45628693ee79ce4f7b2
parent2ef621251992bc0b9fbc9ada98606996047ed8a3
yes: avoid redundant diagnostics on write error

* src/yes.c (main): For large inputs only write a single
diagnostic for write errors.
* tests/misc/yes.sh: Test when /dev/full is available.
src/yes.c
tests/misc/yes.sh