This patch also fixes a bug where 'tac' would print a vague error on
some inputs:
$ seq 10000 | ./src/tac-prev > /dev/full
tac-prev: write error
$ seq 10000 | ./src/tac > /dev/full
tac: write error: No space left on device
In this case ferror (stdout) is true, but errno has been set back to
zero by a successful fclose (stdout) call.
Yes with just two write locations it's worth adding that.
Well write-errors.sh is for commands that run indefinitely,
so it would be best not to add it there.
Instead I've pushed the attached update to io-errors.sh
which distinguishes generic and specific errors, so you
should be able to add "tac --version; seq 10000 | tac" there.
cheers,
Padraig