summaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-redir/redir_backquote1.tests
blob: 41bb4913c8b7f362e58bddd30de8347be712376a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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]"