summaryrefslogtreecommitdiff
path: root/tools/regression
diff options
context:
space:
mode:
authorStefan Farfeleder <stefanf@FreeBSD.org>2009-03-22 23:00:52 +0000
committerStefan Farfeleder <stefanf@FreeBSD.org>2009-03-22 23:00:52 +0000
commitacd5c42915134c2dfae8c5e0d4c2ef8300c27294 (patch)
treefaac1ffff532aac0c5319333767af6084a59b584 /tools/regression
parent86d8da5d5b5043d486b7df8e778ce34a7d810199 (diff)
Notes
Diffstat (limited to 'tools/regression')
-rw-r--r--tools/regression/bin/sh/builtins/read1.01
-rw-r--r--tools/regression/bin/sh/builtins/read1.0.stdout1
2 files changed, 2 insertions, 0 deletions
diff --git a/tools/regression/bin/sh/builtins/read1.0 b/tools/regression/bin/sh/builtins/read1.0
index 1bca5181d42b..06a68faa32a3 100644
--- a/tools/regression/bin/sh/builtins/read1.0
+++ b/tools/regression/bin/sh/builtins/read1.0
@@ -7,6 +7,7 @@ echo "1 2 3" | { read a b c; echo "x${a}x${b}x${c}x"; }
echo "1 2 3" | { read a b c d; echo "x${a}x${b}x${c}x${d}x"; }
echo " 1 2 3 " | { read a b c; echo "x${a}x${b}x${c}x"; }
+echo " 1 2 3 " | { unset IFS; read a b c; echo "x${a}x${b}x${c}x"; }
echo " 1 2 3 " | { IFS=$(printf ' \t\n') read a b c; echo "x${a}x${b}x${c}x"; }
echo " 1 2 3 " | { IFS= read a b; echo "x${a}x${b}x"; }
diff --git a/tools/regression/bin/sh/builtins/read1.0.stdout b/tools/regression/bin/sh/builtins/read1.0.stdout
index 752b9697e4d8..dbcb1af9bae7 100644
--- a/tools/regression/bin/sh/builtins/read1.0.stdout
+++ b/tools/regression/bin/sh/builtins/read1.0.stdout
@@ -4,6 +4,7 @@ x1x2x3x
x1x2x3xx
x1x2x3x
x1x2x3x
+x1x2x3x
x 1 2 3 xx
x1x2x3x
xx2x3x