From dd316dd283704b9adb588c3fb7cdec6ba5fbceb8 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sat, 14 Jun 2008 15:50:55 +0000 Subject: hush: add support for ':'; create testsuite entries text data bss dec hex filename 809569 612 7044 817225 c7849 busybox_old 809528 612 7044 817184 c7820 busybox_unstripped --- shell/hush_test/hush-bugs/glob_and_assign.tests | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 shell/hush_test/hush-bugs/glob_and_assign.tests (limited to 'shell/hush_test/hush-bugs/glob_and_assign.tests') diff --git a/shell/hush_test/hush-bugs/glob_and_assign.tests b/shell/hush_test/hush-bugs/glob_and_assign.tests new file mode 100755 index 000000000..ea11e364b --- /dev/null +++ b/shell/hush_test/hush-bugs/glob_and_assign.tests @@ -0,0 +1,18 @@ +## # bash zbad2 +## ZVAR=z.map +## *.map +## # hush zbad2 +## ZVAR=z.map +## z.map <====== !!! + +## hush does globbing for "VAR=val" too! +## it should do it only for non-assignments. +## even if word looks like assignment, it can be non-assignment: +## ZVAR=*.map /bin/echo ZVAR=*.map +## ^dont_glob ^glob + +>ZVAR=z.map +ZVAR=*.map /bin/echo ZVAR=*.map +ZVAR=*.map +echo "$ZVAR" +rm ZVAR=z.map -- cgit v1.2.3