hush: fix handling of empty arguments
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 18 Oct 2009 09:46:35 +0000 (11:46 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 18 Oct 2009 09:46:35 +0000 (11:46 +0200)
commitf37eb3999bce2ea46fef0214e33279b81609e596
treebef567d0a9fe53cd1397b9b8e1a97c994cdb6d5d
parent7673e7fda42a2665f8528d531e9596f264643149
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>
shell/hush.c
shell/hush_test/hush-misc/empty_args.right [new file with mode: 0644]
shell/hush_test/hush-misc/empty_args.tests [new file with mode: 0755]
shell/hush_test/hush-psubst/emptytick.right
shell/hush_test/hush-psubst/emptytick.tests