busybox/shell/hush_test/hush-redir/redir_backquote1.tests
Denys Vlasenko 21b7f1b6b6 hush: fix a few more corner cases with empty-expanding cmds
See added testcases

function                                             old     new   delta
run_pipe                                            1723    1784     +61

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2018-04-05 15:15:53 +02:00

20 lines
332 B
Plaintext
Executable File

v=v
v=`echo First >&2` `` >/cant/be/created
echo One:$? v1:"[$v]"
v=v
v=`echo Second >&2` `true` >/cant/be/created
echo One:$? v2:"[$v]"
v=v
v=`echo Third >&2` `true` 2>/dev/null
echo Zero:$? v3:"[$v]"
v=v
v=`echo Fourth >&2` `false` 2>/dev/null
echo Zero:$? v4:"[$v]"
v=v
v=`echo $?` `false` 2>/dev/null
echo Zero:$? v5:"[$v]"