As noted in https://bugs.gnu.org/9089
ksh gives intermittent ECONNRESET errors with closed pipes.
This can be seen reliably on Linux with:
ksh -c 'yes | (sleep .1; head -n10 >/dev/null)'
* tests/misc/io-errors.sh: Avoid part of test on ksh.
* tests/misc/write-errors.sh: Likewise.
{ test $? = 124 || ! grep -E "$error_re" full.err >/dev/null; } &&
{ fail=1; cat full.err; echo "$writer: failed to exit" >&2; }
+ # https://github.com/ksh93/ksh/issues/741
+ $SHELL -c 'test -n "$KSH_VERSION"' && continue
+
# Check closed pipe handling
rm -f pipe.err || framework_failure_
timeout 10 env --default-signal=PIPE $SHELL -c \
{ test $? = 124 || ! grep "$ENOSPC" full.err >/dev/null; } &&
{ fail=1; cat full.err; echo "$writer: failed to exit" >&2; }
+ # https://github.com/ksh93/ksh/issues/741
+ $SHELL -c 'test -n "$KSH_VERSION"' && continue
+
# Check closed pipe handling
rm -f pipe.err || framework_failure_
timeout 10 env --default-signal=PIPE $SHELL -c \