diff options
-rw-r--r-- | shell/hush_test/hush-glob/bash_brace1.right | 4 | ||||
-rwxr-xr-x | shell/hush_test/hush-glob/bash_brace1.tests | 10 |
2 files changed, 14 insertions, 0 deletions
diff --git a/shell/hush_test/hush-glob/bash_brace1.right b/shell/hush_test/hush-glob/bash_brace1.right new file mode 100644 index 000000000..63365c9e4 --- /dev/null +++ b/shell/hush_test/hush-glob/bash_brace1.right @@ -0,0 +1,4 @@ +bash_brace1.tests +*{b,b}race1.t* +bash_brace1.tests bash_brace1.tests +Done: 0 diff --git a/shell/hush_test/hush-glob/bash_brace1.tests b/shell/hush_test/hush-glob/bash_brace1.tests new file mode 100755 index 000000000..eb2f0e974 --- /dev/null +++ b/shell/hush_test/hush-glob/bash_brace1.tests @@ -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: $? |