hush: fix expansion of quoted $VAR, $* and $@
This commit is contained in:
1
shell/hush_test/hush-parsing/quote4.right
Normal file
1
shell/hush_test/hush-parsing/quote4.right
Normal file
@@ -0,0 +1 @@
|
||||
a b
|
||||
2
shell/hush_test/hush-parsing/quote4.tests
Executable file
2
shell/hush_test/hush-parsing/quote4.tests
Executable file
@@ -0,0 +1,2 @@
|
||||
a_b='a b'
|
||||
echo "$a_b"
|
||||
8
shell/hush_test/hush-parsing/starquoted.right
Normal file
8
shell/hush_test/hush-parsing/starquoted.right
Normal file
@@ -0,0 +1,8 @@
|
||||
.1 abc d e f.
|
||||
.1.
|
||||
.abc.
|
||||
.d e f.
|
||||
.-1 abc d e f-.
|
||||
.-1.
|
||||
.abc.
|
||||
.d e f-.
|
||||
8
shell/hush_test/hush-parsing/starquoted.tests
Executable file
8
shell/hush_test/hush-parsing/starquoted.tests
Executable file
@@ -0,0 +1,8 @@
|
||||
if test $# = 0; then
|
||||
exec "$THIS_SH" "$0" 1 abc 'd e f'
|
||||
fi
|
||||
|
||||
for a in "$*"; do echo ".$a."; done
|
||||
for a in "$@"; do echo ".$a."; done
|
||||
for a in "-$*-"; do echo ".$a."; done
|
||||
for a in "-$@-"; do echo ".$a."; done
|
||||
Reference in New Issue
Block a user