Imported from ../bash-3.0.tar.gz.
This commit is contained in:
parent
7117c2d221
commit
b80f6443b6
400 changed files with 69247 additions and 13346 deletions
38
tests/arith1.sub
Normal file
38
tests/arith1.sub
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
# test of redone post-increment and post-decrement code
|
||||
echo $(( 4-- ))
|
||||
echo $(( 4++ ))
|
||||
echo $(( 4 -- ))
|
||||
echo $(( 4 ++ ))
|
||||
|
||||
(( array[0]++ ))
|
||||
echo ${array}
|
||||
|
||||
(( array[0] ++ ))
|
||||
echo ${array}
|
||||
|
||||
(( a++ ))
|
||||
echo $a
|
||||
(( a ++ ))
|
||||
echo $a
|
||||
|
||||
echo $(( a ++ + 4 ))
|
||||
echo $a
|
||||
|
||||
echo $(( a+++4 ))
|
||||
echo $a
|
||||
|
||||
echo $(( a---4 ))
|
||||
echo $a
|
||||
|
||||
echo $(( a -- + 4 ))
|
||||
echo $a
|
||||
|
||||
echo $(( a -- - 4 ))
|
||||
echo $a
|
||||
|
||||
(( ++ + 7 ))
|
||||
|
||||
(( ++ ))
|
||||
echo $(( +++7 ))
|
||||
echo $(( ++ + 7 ))
|
||||
(( -- ))
|
||||
Loading…
Add table
Add a link
Reference in a new issue