test for invalid named variables
This commit is contained in:
parent
7c3e52c1bd
commit
0b87e4ad15
3
shell/hush_test/hush-vars/var3.right
Normal file
3
shell/hush_test/hush-vars/var3.right
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
hush: syntax error: unterminated ${name}
|
||||||
|
hush: syntax error: unterminated ${name}
|
||||||
|
hush: syntax error: unterminated ${name}
|
4
shell/hush_test/hush-vars/var3.tests
Executable file
4
shell/hush_test/hush-vars/var3.tests
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
# reject invalid vars
|
||||||
|
hush -c 'echo ${1q}'
|
||||||
|
hush -c 'echo ${&}'
|
||||||
|
hush -c 'echo ${$}'
|
Loading…
Reference in New Issue
Block a user