[git commit master 1/1] hush: add brace expansion testcase

Denys Vlasenko vda.linux at googlemail.com
Sun Oct 3 15:07:57 UTC 2010


commit: http://git.busybox.net/busybox/commit/?id=2bcba5cc53a171fba2d9d0b5185f45d8026a2657
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 shell/hush_test/hush-glob/bash_brace1.right |    4 ++++
 shell/hush_test/hush-glob/bash_brace1.tests |   10 ++++++++++
 2 files changed, 14 insertions(+), 0 deletions(-)
 create mode 100644 shell/hush_test/hush-glob/bash_brace1.right
 create mode 100755 shell/hush_test/hush-glob/bash_brace1.tests

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 0000000..63365c9
--- /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 0000000..eb2f0e9
--- /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: $?
-- 
1.7.1



More information about the busybox-cvs mailing list