1 # $OpenBSD: stderr-after-eof.sh,v 1.3 2017/04/30 23:34:55 djm Exp $
2 # Placed in the Public Domain.
4 tid="stderr data after eof"
9 for i in 1 2 3 4 5 6; do
10 (date;echo $i) | md5 >> ${DATA}
13 ${SSH} -F $OBJ/ssh_proxy otherhost \
14 exec sh -c \'"exec > /dev/null; sleep 2; cat ${DATA} 1>&2 $s"\' \
18 fail "ssh failed with exit code $r"
20 egrep 'Disconnecting: Received extended_data after EOF' ${COPY} &&
21 fail "ext data received after eof"
22 cmp ${DATA} ${COPY} || fail "stderr corrupt"