diff options
-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 1bca518..06a68fa 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 752b969..dbcb1af 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 |