aboutsummaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-vars
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2009-03-31 22:14:32 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2009-03-31 22:14:32 +0000
commitd3081062453cb394052dd2d8ecda94aaaff3c6df (patch)
tree374ee8629cea1a035e13ed8c05e1ef4ee46fb9ee /shell/hush_test/hush-vars
parent9983d806d910ef1e01bc1868ded40720cee3f092 (diff)
downloadbusybox-d3081062453cb394052dd2d8ecda94aaaff3c6df.tar.gz
hust_test/*: use "$THIS_SH" instead of hush
Diffstat (limited to 'shell/hush_test/hush-vars')
-rwxr-xr-xshell/hush_test/hush-vars/param_expand_alt.tests4
-rwxr-xr-xshell/hush_test/hush-vars/param_expand_assign.tests24
-rwxr-xr-xshell/hush_test/hush-vars/param_expand_default.tests4
-rwxr-xr-xshell/hush_test/hush-vars/param_expand_indicate_error.tests58
-rwxr-xr-xshell/hush_test/hush-vars/var3.tests6
5 files changed, 48 insertions, 48 deletions
diff --git a/shell/hush_test/hush-vars/param_expand_alt.tests b/shell/hush_test/hush-vars/param_expand_alt.tests
index c46075b8d..dcdca86d4 100755
--- a/shell/hush_test/hush-vars/param_expand_alt.tests
+++ b/shell/hush_test/hush-vars/param_expand_alt.tests
@@ -1,6 +1,6 @@
# first try some invalid patterns (do in subshell due to parsing error)
-hush -c 'echo ${+} ; echo moo'
-hush -c 'echo ${:+} ; echo moo'
+"$THIS_SH" -c 'echo ${+} ; echo moo'
+"$THIS_SH" -c 'echo ${:+} ; echo moo'
# now some funky ones
echo _${#+} _${#:+}
diff --git a/shell/hush_test/hush-vars/param_expand_assign.tests b/shell/hush_test/hush-vars/param_expand_assign.tests
index 1fba556e4..149cb20df 100755
--- a/shell/hush_test/hush-vars/param_expand_assign.tests
+++ b/shell/hush_test/hush-vars/param_expand_assign.tests
@@ -1,22 +1,22 @@
# first try some invalid patterns (do in subshell due to parsing error)
-hush -c 'echo ${=}'
-hush -c 'echo ${:=}'
+"$THIS_SH" -c 'echo ${=}'
+"$THIS_SH" -c 'echo ${:=}'
# now some funky ones
-hush -c 'echo ${#=}'
-hush -c 'echo ${#:=}'
+"$THIS_SH" -c 'echo ${#=}'
+"$THIS_SH" -c 'echo ${#:=}'
# should error out
-hush -c 'set --; echo _${1=}'
-hush -c 'set --; echo _${1:=}'
-hush -c 'set --; echo _${1=word}'
-hush -c 'set --; echo _${1:=word}'
+"$THIS_SH" -c 'set --; echo _${1=}'
+"$THIS_SH" -c 'set --; echo _${1:=}'
+"$THIS_SH" -c 'set --; echo _${1=word}'
+"$THIS_SH" -c 'set --; echo _${1:=word}'
# should not error
-hush -c 'set aa; echo _${1=}'
-hush -c 'set aa; echo _${1:=}'
-hush -c 'set aa; echo _${1=word}'
-hush -c 'set aa; echo _${1:=word}'
+"$THIS_SH" -c 'set aa; echo _${1=}'
+"$THIS_SH" -c 'set aa; echo _${1:=}'
+"$THIS_SH" -c 'set aa; echo _${1=word}'
+"$THIS_SH" -c 'set aa; echo _${1:=word}'
# should work fine
unset f; echo _$f
diff --git a/shell/hush_test/hush-vars/param_expand_default.tests b/shell/hush_test/hush-vars/param_expand_default.tests
index 2320ece42..1ea051748 100755
--- a/shell/hush_test/hush-vars/param_expand_default.tests
+++ b/shell/hush_test/hush-vars/param_expand_default.tests
@@ -1,6 +1,6 @@
# first try some invalid patterns (do in subshell due to parsing error)
-hush -c 'echo ${-}'
-hush -c 'echo ${:-}'
+"$THIS_SH" -c 'echo ${-}'
+"$THIS_SH" -c 'echo ${:-}'
# now some funky ones
echo _${#-} _${#:-}
diff --git a/shell/hush_test/hush-vars/param_expand_indicate_error.tests b/shell/hush_test/hush-vars/param_expand_indicate_error.tests
index 6b431d311..77834fedd 100755
--- a/shell/hush_test/hush-vars/param_expand_indicate_error.tests
+++ b/shell/hush_test/hush-vars/param_expand_indicate_error.tests
@@ -1,40 +1,40 @@
# do all of these in subshells since it's supposed to error out
# first try some invalid patterns
-hush -c 'echo ${?}'
-hush -c 'echo ${:?}'
+"$THIS_SH" -c 'echo ${?}'
+"$THIS_SH" -c 'echo ${:?}'
# then some funky ones
-hush -c 'echo ${#?}'
-hush -c 'echo ${#:?}'
+"$THIS_SH" -c 'echo ${#?}'
+"$THIS_SH" -c 'echo ${#:?}'
# now some valid ones
-hush -c 'set --; echo _$1'
-hush -c 'set --; echo _${1?}'
-hush -c 'set --; echo _${1:?}'
-hush -c 'set --; echo _${1?word}'
-hush -c 'set --; echo _${1:?word}'
+"$THIS_SH" -c 'set --; echo _$1'
+"$THIS_SH" -c 'set --; echo _${1?}'
+"$THIS_SH" -c 'set --; echo _${1:?}'
+"$THIS_SH" -c 'set --; echo _${1?word}'
+"$THIS_SH" -c 'set --; echo _${1:?word}'
-hush -c 'set -- aaaa; echo _$1'
-hush -c 'set -- aaaa; echo _${1?}'
-hush -c 'set -- aaaa; echo _${1:?}'
-hush -c 'set -- aaaa; echo _${1?word}'
-hush -c 'set -- aaaa; echo _${1:?word}'
+"$THIS_SH" -c 'set -- aaaa; echo _$1'
+"$THIS_SH" -c 'set -- aaaa; echo _${1?}'
+"$THIS_SH" -c 'set -- aaaa; echo _${1:?}'
+"$THIS_SH" -c 'set -- aaaa; echo _${1?word}'
+"$THIS_SH" -c 'set -- aaaa; echo _${1:?word}'
-hush -c 'unset f; echo _$f'
-hush -c 'unset f; echo _${f?}'
-hush -c 'unset f; echo _${f:?}'
-hush -c 'unset f; echo _${f?word}'
-hush -c 'unset f; echo _${f:?word}'
+"$THIS_SH" -c 'unset f; echo _$f'
+"$THIS_SH" -c 'unset f; echo _${f?}'
+"$THIS_SH" -c 'unset f; echo _${f:?}'
+"$THIS_SH" -c 'unset f; echo _${f?word}'
+"$THIS_SH" -c 'unset f; echo _${f:?word}'
-hush -c 'f=; echo _$f'
-hush -c 'f=; echo _${f?}'
-hush -c 'f=; echo _${f:?}'
-hush -c 'f=; echo _${f?word}'
-hush -c 'f=; echo _${f:?word}'
+"$THIS_SH" -c 'f=; echo _$f'
+"$THIS_SH" -c 'f=; echo _${f?}'
+"$THIS_SH" -c 'f=; echo _${f:?}'
+"$THIS_SH" -c 'f=; echo _${f?word}'
+"$THIS_SH" -c 'f=; echo _${f:?word}'
-hush -c 'f=fff; echo _$f'
-hush -c 'f=fff; echo _${f?}'
-hush -c 'f=fff; echo _${f:?}'
-hush -c 'f=fff; echo _${f?word}'
-hush -c 'f=fff; echo _${f:?word}'
+"$THIS_SH" -c 'f=fff; echo _$f'
+"$THIS_SH" -c 'f=fff; echo _${f?}'
+"$THIS_SH" -c 'f=fff; echo _${f:?}'
+"$THIS_SH" -c 'f=fff; echo _${f?word}'
+"$THIS_SH" -c 'f=fff; echo _${f:?word}'
diff --git a/shell/hush_test/hush-vars/var3.tests b/shell/hush_test/hush-vars/var3.tests
index 2947fccee..e09f43317 100755
--- a/shell/hush_test/hush-vars/var3.tests
+++ b/shell/hush_test/hush-vars/var3.tests
@@ -1,4 +1,4 @@
# reject invalid vars
-hush -c 'echo ${1q}'
-hush -c 'echo ${&}'
-hush -c 'echo ${$}'
+"$THIS_SH" -c 'echo ${1q}'
+"$THIS_SH" -c 'echo ${&}'
+"$THIS_SH" -c 'echo ${$}'