busybox/shell/hush_test/hush-redir/redir_backquote1.tests

20 lines
332 B
Plaintext
Raw Permalink Normal View History

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]"