summaryrefslogtreecommitdiff
path: root/regress/yes-head.sh
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2005-11-28 16:41:03 +1100
committerDarren Tucker <dtucker@zip.com.au>2005-11-28 16:41:03 +1100
commitb1a8777f3ac863890bb9d324866d1a78c42c6597 (patch)
tree1123b6ff25808252868de025d04dc591144c498c /regress/yes-head.sh
parent91d25a0c4537ce7f43f78498a5fc767a4d6ab0b7 (diff)
- (dtucker) [regress/yes-head.sh] Work around breakage caused by some
versions of GNU head. Based on patch from zappaman at buraphalinux.org
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 17a4d0dd4..a8e6bc800 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 'sh -c "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 | _POSIX2_VERSION=199209 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;