blob: 8aca0990bb92b381714399151a099ad6ee8fee6e (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
ARRAY=(1 2 3 4 5)
echo "$((0 || -2))"
echo "$((0 || 0))"
echo "$((-1 && 10))"
echo "$((-1 && 0))"
echo "$((1 | 2))"
echo "$((4 & 2))"
echo "$((5 ^ 10))"
echo "$((5 <= 5))"
echo "$((5 <= -10))"
echo "$((5 >= 5))"
echo "$((-5 >= 5))"
echo "$((5 < 6))"
echo "$((-5 < -5))"
echo "$((5 > 4))"
echo "$((-5 > -5))"
echo "$((-5 << 2))"
echo $foo
echo "$((-5 >> 2))"
echo $foo
echo "$((1 + 1))"
echo "$((10 - 5))"
echo "$((10 * 5))"
echo "$((10 / 4))"
echo "$((10 % 4))"
echo "$((10 ** 4))"
echo "$((!10))"
echo "$((~ 10))"
echo "$((1?10:5))"
echo "$((0?10:5))"
value="$((100))"
echo "$((++value))"
echo "$((--value))"
echo "$((value++))"
echo "$((value--))"
value="$((100))"
echo "$((value+++value++))"
echo "$((++value+value++))"
echo "$((10*(2+5)<<3%2**5))"
echo "$((10*value<<3%2**5))"
echo "$(( (20&5|3||1*100-20&5*10)+~(2*5) ))"
echo "$((ARRAY[0]++))"
echo "$((++ARRAY[0]))"
echo "$((ARRAY[0]--))"
echo "$((--ARRAY[0]))"
echo "$((ARRAY[8]=9))"
echo "$((ARRAY[8]*=10))"
echo "$((ARRAY[8]/=10))"
echo "$((ARRAY[8]%=2))"
echo "$((ARRAY[8]+=8))"
echo "$((ARRAY[8]-=0))"
echo "$((ARRAY[8]<<=1))"
echo "$((ARRAY[8]>>=1))"
echo "$((ARRAY[8]&=5))"
echo "$((ARRAY[8]|=10))"
echo "$((ARRAY[8]^=3))"
PARTIAL[8]=5
echo "$((PARTIAL[8]*=1))"
echo "$((${#ARRAY[@]}))"
echo "$((${ARRAY[5]:-10}))"
echo "$((${ARRAY:0}))"
value=100
FOO056="value"
echo "$((${FOO056}++))"
echo "$((${FOO056}+=10))"
ARRAY=(1 2 3 4 5)
FOO059="$((100**0))"
echo "$((FOO059||FOO059++))"
echo "$((0&&FOO059++))"
|