diff options
Diffstat (limited to 'shell/ash_test/ash-arith/arith.tests')
-rwxr-xr-x | shell/ash_test/ash-arith/arith.tests | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/shell/ash_test/ash-arith/arith.tests b/shell/ash_test/ash-arith/arith.tests index d65758e7d..746ccab71 100755 --- a/shell/ash_test/ash-arith/arith.tests +++ b/shell/ash_test/ash-arith/arith.tests @@ -252,8 +252,8 @@ echo 3 $x echo 4 $(( ++x )) echo 4 $x -# bash 3.2 apparently thinks that ++7 is 7 -#ash# echo 7 $(( ++7 )) +# ++ is not a inc operator on non-variable, it is the + + sequence +echo 7 $(( ++7 )) ( echo $(( 7-- )) ) ( echo $(( --x=7 )) ) @@ -267,9 +267,9 @@ echo 4 $x echo 7 $(( +7 )) echo -7 $(( -7 )) -# bash 3.2 apparently thinks that ++7 is 7 -#ash# echo $(( ++7 )) -#ash# echo $(( --7 )) +# ++ is not a inc operator on non-variable, it is the + + sequence +echo $(( ++7 )) +echo $(( --7 )) ${THIS_SH} ./arith1.sub ${THIS_SH} ./arith2.sub |