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>
This commit is contained in:
9
shell/hush_test/hush-misc/empty_args.tests
Executable file
9
shell/hush_test/hush-misc/empty_args.tests
Executable file
@@ -0,0 +1,9 @@
|
||||
echo Null 0th arg:
|
||||
""
|
||||
echo $?
|
||||
echo Null 1st arg:
|
||||
# printf without args would print usage info
|
||||
printf ""
|
||||
echo $?
|
||||
echo Null arg in exec:
|
||||
exec printf ""
|
Reference in New Issue
Block a user