summaryrefslogtreecommitdiff
path: root/tests/arith-for.tests
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2019-01-07 09:27:52 -0500
committerChet Ramey <chet.ramey@case.edu>2019-01-07 09:27:52 -0500
commitd233b485e83c3a784b803fb894280773f16f2deb (patch)
tree16d51f3ccca2d4ad2d8f2da564d68ca848de595b /tests/arith-for.tests
parent64447609994bfddeef1061948022c074093e9a9f (diff)
downloadbash-d233b485e83c3a784b803fb894280773f16f2deb.tar.gz
bash-5.0 distribution sources and documentationbash-5.0
Diffstat (limited to 'tests/arith-for.tests')
-rw-r--r--tests/arith-for.tests14
1 files changed, 8 insertions, 6 deletions
diff --git a/tests/arith-for.tests b/tests/arith-for.tests
index 00e2d4ae..33f4bd66 100644
--- a/tests/arith-for.tests
+++ b/tests/arith-for.tests
@@ -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