summaryrefslogtreecommitdiff
path: root/regress/envpass.sh
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2004-06-23 09:23:58 +1000
committerDarren Tucker <dtucker@zip.com.au>2004-06-23 09:23:58 +1000
commit6eabe6430418fa9051500bed9ca4b1ffb377e3ec (patch)
tree420924c950f8040d7dd88ee32ea96ee93df2b243 /regress/envpass.sh
parenta8c73d3b8c471aaeca90e8d82e28014608bf2707 (diff)
- dtucker@cvs.openbsd.org 2004/06/22 22:42:02
[regress/envpass.sh] Add quoting for test -z; ok markus@
Diffstat (limited to 'regress/envpass.sh')
-rw-r--r--regress/envpass.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/regress/envpass.sh b/regress/envpass.sh
index a5bae06dd..5a7e178d8 100644
--- a/regress/envpass.sh
+++ b/regress/envpass.sh
@@ -1,4 +1,4 @@
1# $OpenBSD: envpass.sh,v 1.2 2004/06/22 03:12:13 markus Exp $ 1# $OpenBSD: envpass.sh,v 1.3 2004/06/22 22:42:02 dtucker Exp $
2# Placed in the Public Domain. 2# Placed in the Public Domain.
3 3
4tid="environment passing" 4tid="environment passing"
@@ -9,7 +9,7 @@ trace "pass env, don't accept"
9verbose "test $tid: pass env, don't accept" 9verbose "test $tid: pass env, don't accept"
10_TEST_ENV=blah ${SSH} -oSendEnv="*" -F $OBJ/ssh_proxy otherhost \ 10_TEST_ENV=blah ${SSH} -oSendEnv="*" -F $OBJ/ssh_proxy otherhost \
11 sh << 'EOF' 11 sh << 'EOF'
12 test -z $_TEST_ENV 12 test -z "$_TEST_ENV"
13EOF 13EOF
14r=$? 14r=$?
15if [ $r -ne 0 ]; then 15if [ $r -ne 0 ]; then
@@ -20,7 +20,7 @@ trace "don't pass env, accept"
20verbose "test $tid: don't pass env, accept" 20verbose "test $tid: don't pass env, accept"
21${SSH} -F $OBJ/ssh_proxy otherhost \ 21${SSH} -F $OBJ/ssh_proxy otherhost \
22 sh << 'EOF' 22 sh << 'EOF'
23 test -z $_XXX_TEST_A && test -z $_XXX_TEST_B 23 test -z "$_XXX_TEST_A" && test -z "$_XXX_TEST_B"
24EOF 24EOF
25r=$? 25r=$?
26if [ $r -ne 0 ]; then 26if [ $r -ne 0 ]; then