aboutsummaryrefslogtreecommitdiff
path: root/shell/hush_test
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-02-10 12:10:08 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-02-10 12:10:08 +0000
commit05743d79496cf96e9f6f645b6bbc165d51e6aa5c (patch)
tree50fb492810d898cdcafe63009bbb08a1dde039ca /shell/hush_test
parent68e8e96d7fba018b5b2354434fe0ae95fdfffc4f (diff)
downloadbusybox-w32-05743d79496cf96e9f6f645b6bbc165d51e6aa5c.tar.gz
busybox-w32-05743d79496cf96e9f6f645b6bbc165d51e6aa5c.tar.bz2
busybox-w32-05743d79496cf96e9f6f645b6bbc165d51e6aa5c.zip
hush: reinstate `cmd` handling for NOMMU (with fat big warning).
hush: fix a case where none of pipe members could be started because of fork failure hush: rename functions: xxx_real -> xxx hush: try to add a bit more of vfork-friendliness hush: add rudimentary design docs hush: add TODO (newly discovered bug with globbing)
Diffstat (limited to 'shell/hush_test')
-rwxr-xr-xshell/hush_test/run-all5
-rw-r--r--shell/hush_test/zbad219
2 files changed, 23 insertions, 1 deletions
diff --git a/shell/hush_test/run-all b/shell/hush_test/run-all
index c75d81e55..805f75ad5 100755
--- a/shell/hush_test/run-all
+++ b/shell/hush_test/run-all
@@ -1,6 +1,9 @@
1#!/bin/sh 1#!/bin/sh
2 2
3test -x hush || { echo "No ./hush?!"; exit; } 3test -x hush || {
4 echo "No ./hush?! Perhaps you want to run 'ln -s ../../busybox hush'"
5 exit
6}
4 7
5PATH="$PWD:$PATH" # for hush and recho/zecho/printenv 8PATH="$PWD:$PATH" # for hush and recho/zecho/printenv
6export PATH 9export PATH
diff --git a/shell/hush_test/zbad2 b/shell/hush_test/zbad2
new file mode 100644
index 000000000..c30fa85a0
--- /dev/null
+++ b/shell/hush_test/zbad2
@@ -0,0 +1,19 @@
1## TODO: fix and add to testsuite
2
3## # bash zbad2
4## ZVAR=z.map
5## *.map
6## # hush zbad2
7## ZVAR=z.map
8## z.map <====== !!!
9
10## hush does globbing for "VAR=val" too!
11## it should do it only for non-assignments.
12## even if word looks like assignment, it can be non-assignemnt:
13## ZVAR=*.map /bin/echo ZVAR=*.map
14## ^dont_glob ^glob
15
16>ZVAR=z.map
17ZVAR=*.map /bin/echo ZVAR=*.map
18ZVAR=*.map
19echo "$ZVAR"