aboutsummaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-vars/param_expand_default.tests
diff options
context:
space:
mode:
Diffstat (limited to 'shell/hush_test/hush-vars/param_expand_default.tests')
-rwxr-xr-xshell/hush_test/hush-vars/param_expand_default.tests7
1 files changed, 5 insertions, 2 deletions
diff --git a/shell/hush_test/hush-vars/param_expand_default.tests b/shell/hush_test/hush-vars/param_expand_default.tests
index 16e5f8efe..dbd3e2218 100755
--- a/shell/hush_test/hush-vars/param_expand_default.tests
+++ b/shell/hush_test/hush-vars/param_expand_default.tests
@@ -1,7 +1,5 @@
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)
2# (set argv0 to "SHELL" to avoid "/path/to/shell: blah" in error messages) 2# (set argv0 to "SHELL" to avoid "/path/to/shell: blah" in error messages)
3# valid in bash and ash (same as $-), not supported in hush (yet?):
4"$THIS_SH" -c 'echo ${-}' SHELL
5"$THIS_SH" -c 'echo ${:-}' SHELL 3"$THIS_SH" -c 'echo ${:-}' SHELL
6 4
7# now some funky ones 5# now some funky ones
@@ -22,3 +20,8 @@ echo _$f _${f-} _${f:-} _${f-word} _${f:-word}
22 20
23f=fff 21f=fff
24echo _$f _${f-} _${f:-} _${f-word} _${f:-word} 22echo _$f _${f-} _${f:-} _${f-word} _${f:-word}
23
24set --
25set -- "${1-}"; echo 1:$#
26set --
27set -- ${1-}; echo 0:$#