summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2009-12-06 23:31:23 +0000
committerjilles <jilles@FreeBSD.org>2009-12-06 23:31:23 +0000
commitc4ae3de634c2ba2e5cccd2ba74dea58abf31ad06 (patch)
tree7bc8323c5332ba4e65862c6f1c0713c320d7491d /tools
parentcc8ac328443112ba8c2be9eaa80fc4e9b6e71fa6 (diff)
downloadFreeBSD-src-c4ae3de634c2ba2e5cccd2ba74dea58abf31ad06.zip
FreeBSD-src-c4ae3de634c2ba2e5cccd2ba74dea58abf31ad06.tar.gz
sh: Test ;<newline> as well as ; in the 'for' parser test.
Diffstat (limited to 'tools')
-rw-r--r--tools/regression/bin/sh/parser/for1.06
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/regression/bin/sh/parser/for1.0 b/tools/regression/bin/sh/parser/for1.0
index f4b38d4..64e1442 100644
--- a/tools/regression/bin/sh/parser/for1.0
+++ b/tools/regression/bin/sh/parser/for1.0
@@ -4,7 +4,7 @@ nl='
'
list=' a b c'
for s1 in "$nl" " "; do
- for s2 in "$nl" ";"; do
+ for s2 in "$nl" ";" ";$nl"; do
for s3 in "$nl" " "; do
r=''
eval "for i${s1}in ${list}${s2}do${s3}r=\"\$r \$i\"; done"
@@ -13,7 +13,7 @@ for s1 in "$nl" " "; do
done
done
set -- $list
-for s2 in "$nl" " " ";"; do # s2=";" is an extension to POSIX
+for s2 in "$nl" " " ";" ";$nl"; do # s2=";" and ";$nl" are extensions to POSIX
for s3 in "$nl" " "; do
r=''
eval "for i${s2}do${s3}r=\"\$r \$i\"; done"
@@ -21,7 +21,7 @@ for s2 in "$nl" " " ";"; do # s2=";" is an extension to POSIX
done
done
for s1 in "$nl" " "; do
- for s2 in "$nl" ";"; do
+ for s2 in "$nl" ";" ";$nl"; do
for s3 in "$nl" " "; do
eval "for i${s1}in${s2}do${s3}exit 1; done"
done
OpenPOWER on IntegriCloud