summaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-psubst
diff options
context:
space:
mode:
authorDenys Vlasenko2009-10-18 11:46:35 +0200
committerDenys Vlasenko2009-10-18 11:46:35 +0200
commitf37eb3999bce2ea46fef0214e33279b81609e596 (patch)
treebef567d0a9fe53cd1397b9b8e1a97c994cdb6d5d /shell/hush_test/hush-psubst
parent7673e7fda42a2665f8528d531e9596f264643149 (diff)
downloadbusybox-f37eb3999bce2ea46fef0214e33279b81609e596.zip
busybox-f37eb3999bce2ea46fef0214e33279b81609e596.tar.gz
hush: fix handling of empty arguments
function old new delta builtin_exec 25 83 +58 parse_stream 2242 2261 +19 run_pipe 1782 1787 +5 static.pseudo_null_str - 3 +3 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 3/0 up/down: 85/0) Total: 85 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/hush_test/hush-psubst')
-rw-r--r--shell/hush_test/hush-psubst/emptytick.right7
-rwxr-xr-xshell/hush_test/hush-psubst/emptytick.tests8
2 files changed, 11 insertions, 4 deletions
diff --git a/shell/hush_test/hush-psubst/emptytick.right b/shell/hush_test/hush-psubst/emptytick.right
index d4b70c5..1f60ecf 100644
--- a/shell/hush_test/hush-psubst/emptytick.right
+++ b/shell/hush_test/hush-psubst/emptytick.right
@@ -1,14 +1,17 @@
0
0
+hush: can't execute '': No such file or directory
0
+hush: can't execute '': No such file or directory
0
0
0
0
0
+hush: can't execute '': No such file or directory
0
+hush: can't execute '': No such file or directory
0
0
0
-0
-0
+hush: can't execute '': No such file or directory
diff --git a/shell/hush_test/hush-psubst/emptytick.tests b/shell/hush_test/hush-psubst/emptytick.tests
index af3a183..a269f02 100755
--- a/shell/hush_test/hush-psubst/emptytick.tests
+++ b/shell/hush_test/hush-psubst/emptytick.tests
@@ -1,16 +1,20 @@
true; ``; echo $?
false; ``; echo $?
+# UNFIXED BUG. bash sets $? to 127:
true; `""`; echo $?
+# bash sets $? to 127:
false; `""`; echo $?
true; ` `; echo $?
false; ` `; echo $?
true; $(); echo $?
false; $(); echo $?
+# bash sets $? to 127:
true; $(""); echo $?
+# bash sets $? to 127:
false; $(""); echo $?
true; $( ); echo $?
false; $( ); echo $?
-true; exec ''; echo $?
-false; exec ''; echo $?
+exec ''; echo $?
+echo Not reached