add hush tests for parameter expansion
This commit is contained in:
12
shell/hush_test/hush-vars/param_expand_len.tests
Executable file
12
shell/hush_test/hush-vars/param_expand_len.tests
Executable file
@@ -0,0 +1,12 @@
|
||||
# make sure len parsing doesnt break arg count
|
||||
set --
|
||||
echo $# ${#}
|
||||
set -- aaaa bbb cc d
|
||||
echo $# ${#}
|
||||
|
||||
echo ${#1} ${#2} ${#3} ${#4} ${#5} ${#6}
|
||||
|
||||
unset e
|
||||
f=abc
|
||||
g=
|
||||
echo ${#e} ${#f} ${#g}
|
Reference in New Issue
Block a user