]> andersk Git - gssapi-openssh.git/blob - openssh/regress/stderr-after-eof.sh
The man2html from jbasney on pkilab2 works whereas the standard one doesn't.
[gssapi-openssh.git] / openssh / regress / stderr-after-eof.sh
1 #       $OpenBSD: stderr-after-eof.sh,v 1.1 2002/03/23 16:38:09 markus Exp $
2 #       Placed in the Public Domain.
3
4 tid="stderr data after eof"
5
6 DATA=/etc/motd
7 DATA=${OBJ}/data
8 COPY=${OBJ}/copy
9
10 MD5=md5sum
11
12 # setup data
13 rm -f ${DATA} ${COPY}
14 cp /dev/null ${DATA}
15 for i in 1 2 3 4 5 6; do
16         (date;echo $i) | $MD5 >> ${DATA}
17 done
18
19 ${SSH} -2 -F $OBJ/ssh_proxy otherhost \
20         exec sh -c \'"exec > /dev/null; sleep 2; cat ${DATA} 1>&2 $s"\' \
21         2> ${COPY}
22 r=$?
23 if [ $r -ne 0 ]; then
24         fail "ssh failed with exit code $r"
25 fi
26 egrep 'Disconnecting: Received extended_data after EOF' ${COPY} &&
27         fail "ext data received after eof"
28 cmp ${DATA} ${COPY}     || fail "stderr corrupt"
29
30 rm -f ${DATA} ${COPY}
This page took 0.871042 seconds and 5 git commands to generate.