busybox/shell/hush_test/hush-psubst/emptytick.tests
Denys Vlasenko f37eb3999b 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>
2009-10-18 11:46:35 +02:00

21 lines
403 B
Plaintext
Executable File

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 $?
exec ''; echo $?
echo Not reached