summaryrefslogtreecommitdiff
path: root/regress/yes-head.sh
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 /regress/yes-head.sh
parentec28ca16b1bd74e8954e3c4d13364baadc1382a4 (diff)
[regress/yes-head.sh] shell portability fix.
Diffstat (limited to 'regress/yes-head.sh')
-rw-r--r--regress/yes-head.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/regress/yes-head.sh b/regress/yes-head.sh
index 88146a066..17a4d0dd4 100644
--- a/regress/yes-head.sh
+++ b/regress/yes-head.sh
@@ -4,7 +4,7 @@
4tid="yes pipe head" 4tid="yes pipe head"
5 5
6for p in 1 2; do 6for p in 1 2; do
7 lines=`${SSH} -$p -F $OBJ/ssh_proxy thishost 'while true;do echo yes;done | head -2000' | (sleep 3 ; wc -l)` 7 lines=`${SSH} -$p -F $OBJ/ssh_proxy thishost 'sh -c "while true;do echo yes;done | head -2000"' | (sleep 3 ; wc -l)`
8 if [ $? -ne 0 ]; then 8 if [ $? -ne 0 ]; then
9 fail "yes|head test failed" 9 fail "yes|head test failed"
10 lines = 0; 10 lines = 0;