summaryrefslogtreecommitdiffstats
path: root/tests/arith8.sub
blob: 1ab0895ef690ebb364873fed72f19cfa5e234a59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# problems with evaluation of wrong terms in conditional expressions through
# bash-4.4

a=0 x="a=1"
((0?x:0))
echo $a
unset a x

a=0 x="a=1"
((1?0:x))
echo $a
unset a x

a=0 x="a=1"
((0?(x):0))
echo $a
unset a x

a=0 x="a=1"
((0?$x:0))
echo $a
unset a x

a=0 x="a=1"
((0&&x))
echo $a
unset a x

a=0 x="a=1"
((1||x))
echo $a
unset a x

a=0
((0?arr[a=1]:0))
echo $a
unset a