[regress/yes-head.sh] shell portability fix.

This commit is contained in:
Tim Rice 2003-09-12 13:21:14 -07:00
parent ec28ca16b1
commit e660ede8c0
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,7 @@
20030912
- (tim) [regress/agent-ptrace.sh] sh doesn't like "if ! shell_function; then".
- (tim) [Makefile.in] only mkdir regress if it does not exist.
- (tim) [regress/yes-head.sh] shell portability fix.
20030911
- (dtucker) [configure.ac] Bug #588, #615: Move other libgen tests to after
@ -1074,4 +1075,4 @@
- Fix sshd BindAddress and -b options for systems using fake-getaddrinfo.
Report from murple@murple.net, diagnosis from dtucker@zip.com.au
$Id: ChangeLog,v 1.2984 2003/09/12 20:02:16 tim Exp $
$Id: ChangeLog,v 1.2985 2003/09/12 20:21:14 tim Exp $

View File

@ -4,7 +4,7 @@
tid="yes pipe head"
for p in 1 2; do
lines=`${SSH} -$p -F $OBJ/ssh_proxy thishost 'while true;do echo yes;done | head -2000' | (sleep 3 ; wc -l)`
lines=`${SSH} -$p -F $OBJ/ssh_proxy thishost 'sh -c "while true;do echo yes;done | head -2000"' | (sleep 3 ; wc -l)`
if [ $? -ne 0 ]; then
fail "yes|head test failed"
lines = 0;