]> git.ipfire.org Git - thirdparty/bash.git/blobdiff - tests/arith-for.tests
bash-5.0 distribution sources and documentation
[thirdparty/bash.git] / tests / arith-for.tests
index 00e2d4aedab7875a698f6ed5cb4e7d62f9c95ce7..33f4bd66e74a1ec68eb54ca089e61fc52786ac0f 100644 (file)
@@ -74,17 +74,19 @@ type fx
 fx
 
 # errors 
-for (( i=0; "i < 3" ))
+{
+${THIS_SH} -c 'for (( i=0; "i < 3" ))
 do
        echo $i
-done
-echo $?
+done' ; echo $? ;  } 2>&1 | sed 's|^.*/||'
+#echo $?
 
-for (( i=0; i < 3; i++; 7 ))
+{
+${THIS_SH} -c 'for (( i=0; i < 3; i++; 7 ))
 do
        echo $i
-done
-echo $?
+done' ; echo $?; } 2>&1 | sed 's|^.*/||'
+#echo $?
 
 # one-liners added in post-bash-2.04
 for     ((i=0; i < 20; i++)) do : ; done