diff options
| author | Stefan Farfeleder <stefanf@FreeBSD.org> | 2009-03-22 23:00:52 +0000 |
|---|---|---|
| committer | Stefan Farfeleder <stefanf@FreeBSD.org> | 2009-03-22 23:00:52 +0000 |
| commit | acd5c42915134c2dfae8c5e0d4c2ef8300c27294 (patch) | |
| tree | faac1ffff532aac0c5319333767af6084a59b584 /tools/regression | |
| parent | 86d8da5d5b5043d486b7df8e778ce34a7d810199 (diff) | |
Notes
Diffstat (limited to 'tools/regression')
| -rw-r--r-- | tools/regression/bin/sh/builtins/read1.0 | 1 | ||||
| -rw-r--r-- | tools/regression/bin/sh/builtins/read1.0.stdout | 1 |
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 |
