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-w32-d3081062453cb394052dd2d8ecda94aaaff3c6df.tar.gz
busybox-w32-d3081062453cb394052dd2d8ecda94aaaff3c6df.tar.bz2
busybox-w32-d3081062453cb394052dd2d8ecda94aaaff3c6df.zip
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 @@
1# first try some invalid patterns (do in subshell due to parsing error) 1# first try some invalid patterns (do in subshell due to parsing error)
2hush -c 'echo ${+} ; echo moo' 2"$THIS_SH" -c 'echo ${+} ; echo moo'
3hush -c 'echo ${:+} ; echo moo' 3"$THIS_SH" -c 'echo ${:+} ; echo moo'
4 4
5# now some funky ones 5# now some funky ones
6echo _${#+} _${#:+} 6echo _${#+} _${#:+}
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 @@
1# first try some invalid patterns (do in subshell due to parsing error) 1# first try some invalid patterns (do in subshell due to parsing error)
2hush -c 'echo ${=}' 2"$THIS_SH" -c 'echo ${=}'
3hush -c 'echo ${:=}' 3"$THIS_SH" -c 'echo ${:=}'
4 4
5# now some funky ones 5# now some funky ones
6hush -c 'echo ${#=}' 6"$THIS_SH" -c 'echo ${#=}'
7hush -c 'echo ${#:=}' 7"$THIS_SH" -c 'echo ${#:=}'
8 8
9# should error out 9# should error out
10hush -c 'set --; echo _${1=}' 10"$THIS_SH" -c 'set --; echo _${1=}'
11hush -c 'set --; echo _${1:=}' 11"$THIS_SH" -c 'set --; echo _${1:=}'
12hush -c 'set --; echo _${1=word}' 12"$THIS_SH" -c 'set --; echo _${1=word}'
13hush -c 'set --; echo _${1:=word}' 13"$THIS_SH" -c 'set --; echo _${1:=word}'
14 14
15# should not error 15# should not error
16hush -c 'set aa; echo _${1=}' 16"$THIS_SH" -c 'set aa; echo _${1=}'
17hush -c 'set aa; echo _${1:=}' 17"$THIS_SH" -c 'set aa; echo _${1:=}'
18hush -c 'set aa; echo _${1=word}' 18"$THIS_SH" -c 'set aa; echo _${1=word}'
19hush -c 'set aa; echo _${1:=word}' 19"$THIS_SH" -c 'set aa; echo _${1:=word}'
20 20
21# should work fine 21# should work fine
22unset f; echo _$f 22unset 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 @@
1# first try some invalid patterns (do in subshell due to parsing error) 1# first try some invalid patterns (do in subshell due to parsing error)
2hush -c 'echo ${-}' 2"$THIS_SH" -c 'echo ${-}'
3hush -c 'echo ${:-}' 3"$THIS_SH" -c 'echo ${:-}'
4 4
5# now some funky ones 5# now some funky ones
6echo _${#-} _${#:-} 6echo _${#-} _${#:-}
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 @@
1# do all of these in subshells since it's supposed to error out 1# do all of these in subshells since it's supposed to error out
2 2
3# first try some invalid patterns 3# first try some invalid patterns
4hush -c 'echo ${?}' 4"$THIS_SH" -c 'echo ${?}'
5hush -c 'echo ${:?}' 5"$THIS_SH" -c 'echo ${:?}'
6 6
7# then some funky ones 7# then some funky ones
8hush -c 'echo ${#?}' 8"$THIS_SH" -c 'echo ${#?}'
9hush -c 'echo ${#:?}' 9"$THIS_SH" -c 'echo ${#:?}'
10 10
11# now some valid ones 11# now some valid ones
12hush -c 'set --; echo _$1' 12"$THIS_SH" -c 'set --; echo _$1'
13hush -c 'set --; echo _${1?}' 13"$THIS_SH" -c 'set --; echo _${1?}'
14hush -c 'set --; echo _${1:?}' 14"$THIS_SH" -c 'set --; echo _${1:?}'
15hush -c 'set --; echo _${1?word}' 15"$THIS_SH" -c 'set --; echo _${1?word}'
16hush -c 'set --; echo _${1:?word}' 16"$THIS_SH" -c 'set --; echo _${1:?word}'
17 17
18hush -c 'set -- aaaa; echo _$1' 18"$THIS_SH" -c 'set -- aaaa; echo _$1'
19hush -c 'set -- aaaa; echo _${1?}' 19"$THIS_SH" -c 'set -- aaaa; echo _${1?}'
20hush -c 'set -- aaaa; echo _${1:?}' 20"$THIS_SH" -c 'set -- aaaa; echo _${1:?}'
21hush -c 'set -- aaaa; echo _${1?word}' 21"$THIS_SH" -c 'set -- aaaa; echo _${1?word}'
22hush -c 'set -- aaaa; echo _${1:?word}' 22"$THIS_SH" -c 'set -- aaaa; echo _${1:?word}'
23 23
24hush -c 'unset f; echo _$f' 24"$THIS_SH" -c 'unset f; echo _$f'
25hush -c 'unset f; echo _${f?}' 25"$THIS_SH" -c 'unset f; echo _${f?}'
26hush -c 'unset f; echo _${f:?}' 26"$THIS_SH" -c 'unset f; echo _${f:?}'
27hush -c 'unset f; echo _${f?word}' 27"$THIS_SH" -c 'unset f; echo _${f?word}'
28hush -c 'unset f; echo _${f:?word}' 28"$THIS_SH" -c 'unset f; echo _${f:?word}'
29 29
30hush -c 'f=; echo _$f' 30"$THIS_SH" -c 'f=; echo _$f'
31hush -c 'f=; echo _${f?}' 31"$THIS_SH" -c 'f=; echo _${f?}'
32hush -c 'f=; echo _${f:?}' 32"$THIS_SH" -c 'f=; echo _${f:?}'
33hush -c 'f=; echo _${f?word}' 33"$THIS_SH" -c 'f=; echo _${f?word}'
34hush -c 'f=; echo _${f:?word}' 34"$THIS_SH" -c 'f=; echo _${f:?word}'
35 35
36hush -c 'f=fff; echo _$f' 36"$THIS_SH" -c 'f=fff; echo _$f'
37hush -c 'f=fff; echo _${f?}' 37"$THIS_SH" -c 'f=fff; echo _${f?}'
38hush -c 'f=fff; echo _${f:?}' 38"$THIS_SH" -c 'f=fff; echo _${f:?}'
39hush -c 'f=fff; echo _${f?word}' 39"$THIS_SH" -c 'f=fff; echo _${f?word}'
40hush -c 'f=fff; echo _${f:?word}' 40"$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 @@
1# reject invalid vars 1# reject invalid vars
2hush -c 'echo ${1q}' 2"$THIS_SH" -c 'echo ${1q}'
3hush -c 'echo ${&}' 3"$THIS_SH" -c 'echo ${&}'
4hush -c 'echo ${$}' 4"$THIS_SH" -c 'echo ${$}'