diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-06-17 07:24:29 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-06-17 07:24:29 +0000 |
commit | 30c9cc5b178932bc417846919eaa2fc1bf8e5996 (patch) | |
tree | 57e6d113f605411ee3fe272fdc0746d7f189f71c /shell/hush_test | |
parent | c7985b76c5174c4c224b67e29dd554443f80f47e (diff) | |
download | busybox-w32-30c9cc5b178932bc417846919eaa2fc1bf8e5996.tar.gz busybox-w32-30c9cc5b178932bc417846919eaa2fc1bf8e5996.tar.bz2 busybox-w32-30c9cc5b178932bc417846919eaa2fc1bf8e5996.zip |
hush: continue fixing quoting and subst: fix glob_and_assign.tests.
Diffstat (limited to 'shell/hush_test')
-rw-r--r-- | shell/hush_test/hush-bugs/glob_and_assign.right | 8 | ||||
-rwxr-xr-x | shell/hush_test/hush-bugs/glob_and_assign.tests | 26 | ||||
-rwxr-xr-x | shell/hush_test/run-all | 9 |
3 files changed, 24 insertions, 19 deletions
diff --git a/shell/hush_test/hush-bugs/glob_and_assign.right b/shell/hush_test/hush-bugs/glob_and_assign.right index dae832361..d46e44363 100644 --- a/shell/hush_test/hush-bugs/glob_and_assign.right +++ b/shell/hush_test/hush-bugs/glob_and_assign.right | |||
@@ -1,2 +1,6 @@ | |||
1 | ZVAR=z.map | 1 | ZVAR=z.tmp ZVAR=*.tmp ZVAR=[z].tmp |
2 | *.map | 2 | ZVAR=z.tmp ZVAR=*.tmp ZVAR=[z].tmp |
3 | *.tmp | ||
4 | ZVAR=z.tmp z.tmp | ||
5 | ZVAR=z.tmp ZVAR=*.tmp ZVAR=[z].tmp | ||
6 | ZVAR=z.tmp ZVAR=*.tmp ZVAR=[z].tmp | ||
diff --git a/shell/hush_test/hush-bugs/glob_and_assign.tests b/shell/hush_test/hush-bugs/glob_and_assign.tests index ea11e364b..0b158f20f 100755 --- a/shell/hush_test/hush-bugs/glob_and_assign.tests +++ b/shell/hush_test/hush-bugs/glob_and_assign.tests | |||
@@ -1,18 +1,10 @@ | |||
1 | ## # bash zbad2 | 1 | >ZVAR=z.tmp |
2 | ## ZVAR=z.map | 2 | >z.tmp |
3 | ## *.map | 3 | ZVAR=*.tmp echo ZVAR=*.tmp "ZVAR=*.tmp" "ZVAR=[z].tmp" |
4 | ## # hush zbad2 | 4 | ZVAR=*.tmp /bin/echo ZVAR=*.tmp "ZVAR=*.tmp" "ZVAR=[z].tmp" |
5 | ## ZVAR=z.map | 5 | ZVAR=*.tmp |
6 | ## z.map <====== !!! | ||
7 | |||
8 | ## hush does globbing for "VAR=val" too! | ||
9 | ## it should do it only for non-assignments. | ||
10 | ## even if word looks like assignment, it can be non-assignment: | ||
11 | ## ZVAR=*.map /bin/echo ZVAR=*.map | ||
12 | ## ^dont_glob ^glob | ||
13 | |||
14 | >ZVAR=z.map | ||
15 | ZVAR=*.map /bin/echo ZVAR=*.map | ||
16 | ZVAR=*.map | ||
17 | echo "$ZVAR" | 6 | echo "$ZVAR" |
18 | rm ZVAR=z.map | 7 | echo $ZVAR |
8 | echo ZVAR=*.tmp "ZVAR=*.tmp" "ZVAR=[z].tmp" | ||
9 | /bin/echo ZVAR=*.tmp "ZVAR=*.tmp" "ZVAR=[z].tmp" | ||
10 | rm ZVAR=z.tmp z.tmp | ||
diff --git a/shell/hush_test/run-all b/shell/hush_test/run-all index 5cec85af6..b79af2f67 100755 --- a/shell/hush_test/run-all +++ b/shell/hush_test/run-all | |||
@@ -1,5 +1,14 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | 2 | ||
3 | unset LANG LANGUAGE | ||
4 | unset LC_COLLATE | ||
5 | unset LC_CTYPE | ||
6 | unset LC_MONETARY | ||
7 | unset LC_MESSAGES | ||
8 | unset LC_NUMERIC | ||
9 | unset LC_TIME | ||
10 | unset LC_ALL | ||
11 | |||
3 | test -x hush || { | 12 | test -x hush || { |
4 | echo "No ./hush - creating a link to ../../busybox" | 13 | echo "No ./hush - creating a link to ../../busybox" |
5 | ln -s ../../busybox hush | 14 | ln -s ../../busybox hush |