hush: add brace expansion testcase
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
9e800223f1
commit
2bcba5cc53
4
shell/hush_test/hush-glob/bash_brace1.right
Normal file
4
shell/hush_test/hush-glob/bash_brace1.right
Normal file
@ -0,0 +1,4 @@
|
||||
bash_brace1.tests
|
||||
*{b,b}race1.t*
|
||||
bash_brace1.tests bash_brace1.tests
|
||||
Done: 0
|
10
shell/hush_test/hush-glob/bash_brace1.tests
Executable file
10
shell/hush_test/hush-glob/bash_brace1.tests
Executable file
@ -0,0 +1,10 @@
|
||||
# unquoted $v should be globbed:
|
||||
v='*brace1.t*'; echo $v
|
||||
|
||||
# ...but not brace expanded:
|
||||
v='*{b,b}race1.t*'; echo $v
|
||||
|
||||
# whereas direct brces are expanded:
|
||||
echo *{b,b}race1.t*
|
||||
|
||||
echo Done: $?
|
Loading…
Reference in New Issue
Block a user