repo.or.cz
/
bash.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Patch-ID: bash32-029
[bash.git]
/
tests
/
arith2.sub
blob
7eac9523d0e057741bed6158968c583a309b90a0
1
echo $(( --7 ))
2
echo $(( ++7 ))
3
echo $(( -- 7 ))
4
echo $(( ++ 7 ))
5
6
((++array[0] ))
7
echo $array
8
(( ++ array[0] ))
9
echo $array
10
11
(( ++a ))
12
echo $a
13
(( ++ a ))
14
echo $a
15
16
(( --a ))
17
echo $a
18
(( -- a ))
19
echo $a
20
21
echo $(( 4 + ++a ))
22
echo $a
23
24
echo $(( 4+++a ))
25
echo $a
26
27
echo $(( 4---a ))
28
echo $a
29
30
echo $(( 4 - -- a ))
31
echo $a
32
33
(( -- ))
34
echo $(( ---7 ))
35
echo $(( -- - 7 ))
36
37
(( ++ ))
38
echo $(( ++7 ))
39
echo $(( ++ + 7 ))
40
41
echo $(( ++-7 ))
42
echo $(( ++ - 7 ))
43
44
echo $(( +--7 ))
45
echo $(( -- + 7 ))