From 9a959ea1b5d59f8c3de9cb17c10dd2260117f877 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Wed, 10 Sep 2003 20:17:40 +1000 Subject: - (dtucker) [regressh/yes-head.sh] Some platforms (eg Solaris) don't have "yes". --- regress/yes-head.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'regress/yes-head.sh') diff --git a/regress/yes-head.sh b/regress/yes-head.sh index f213f6863..88146a066 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 'yes | head -2000' | (sleep 3 ; wc -l)` + lines=`${SSH} -$p -F $OBJ/ssh_proxy thishost 'while true;do echo yes;done | head -2000' | (sleep 3 ; wc -l)` if [ $? -ne 0 ]; then fail "yes|head test failed" lines = 0; -- cgit v1.2.3 From e660ede8c0b479051db419e67319904ca9787539 Mon Sep 17 00:00:00 2001 From: Tim Rice Date: Fri, 12 Sep 2003 13:21:14 -0700 Subject: [regress/yes-head.sh] shell portability fix. --- ChangeLog | 3 ++- regress/yes-head.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'regress/yes-head.sh') diff --git a/ChangeLog b/ChangeLog index 914995c9f..2d914f7d7 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 88146a066..17a4d0dd4 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; -- cgit v1.2.3