]> git.ipfire.org Git - thirdparty/bash.git/blobdiff - tests/arith.tests
Bash-4.4 distribution sources and documentation
[thirdparty/bash.git] / tests / arith.tests
index 7dcc36d8d8024867ecd5458e320ccc7aab9e2f6e..79ce016d523f70039ff704e89dcd8a848b9d6021 100644 (file)
@@ -260,6 +260,10 @@ echo $(( -7 ))
 echo $(( ++7 ))
 echo $(( --7 ))
 
+# combinations of expansions
+echo $(( "`echo 1+1`" ))
+echo $(( `echo 1+1` ))
+
 ${THIS_SH} ./arith1.sub
 ${THIS_SH} ./arith2.sub
 ${THIS_SH} ./arith3.sub
@@ -275,6 +279,10 @@ ${THIS_SH} ./arith5.sub
 # problems with suppressing evaluation present through bash-4.2
 ${THIS_SH} ./arith6.sub
 
+# problems with parsing arithmetic expressions containing colons that are
+# part of word expansions such as substring extraction
+${THIS_SH} ./arith7.sub
+
 x=4
 y=7