summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Rice <tim@multitalents.net>2003-09-12 13:21:14 -0700
committerTim Rice <tim@multitalents.net>2003-09-12 13:21:14 -0700
commite660ede8c0b479051db419e67319904ca9787539 (patch)
tree766a44a72f1b5df99b1c5a3aca1335ec943a44b8
parentec28ca16b1bd74e8954e3c4d13364baadc1382a4 (diff)
downloadopenssh-git-e660ede8c0b479051db419e67319904ca9787539.tar.gz
[regress/yes-head.sh] shell portability fix.
-rw-r--r--ChangeLog3
-rw-r--r--regress/yes-head.sh2
2 files changed, 3 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 914995c9..2d914f7d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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 $
diff --git a/regress/yes-head.sh b/regress/yes-head.sh
index 88146a06..17a4d0dd 100644
--- a/regress/yes-head.sh
+++ b/regress/yes-head.sh
@@ -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;