seq: produce consistent error messages upon write error
commitae150112846275604688f723ed0960309b289eec
authorPádraig Brady <P@draigBrady.com>
Sun, 13 Aug 2017 07:18:43 +0000 (13 00:18 -0700)
committerPádraig Brady <P@draigBrady.com>
Mon, 14 Aug 2017 04:31:57 +0000 (13 21:31 -0700)
treed1a4ba2a8b74771dd37dcd7a6a5696f8e9bf7b76
parentc81dda1b3994508f759bfb7245b1381950fb58b6
seq: produce consistent error messages upon write error

* src/seq.c (io_error): Use the same error message as would
be generated at exit time when closing the stdout stream.
The inconsistency was added with commit v8.25-26-gc92585b.
This was noticed due to an inconsistency in the expected
error message generated by seq on musl libc.
Addresses https://bugs.gnu.org/28054
src/seq.c
tests/misc/seq-epipe.sh