1 # bash 3.2 apparently thinks that ++7 is 7 etc
9 #ash# (( ++ array[0] ))
26 # this is treated as 4 + ++a
31 # this is treated as 4 - --a
36 echo 4 $(( 4 - -- a ))
40 # bash 3.2 apparently thinks that ---7 is -7
41 #ash# echo $(( ---7 ))
42 ( echo $(( -- - 7 )) )
46 #ash# echo 7 $(( ++7 ))
47 ( echo $(( ++ + 7 )) )
50 #ash# echo -7 $(( ++-7 ))
52 #ash# echo -7 $(( ++ - 7 ))
55 #ash# echo 7 $(( +--7 ))
57 #ash# echo 7 $(( -- + 7 ))