summaryrefslogtreecommitdiff
path: root/shell/ash_test/ash-read/read_ifs.tests
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2009-04-15 00:11:22 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2009-04-15 00:11:22 +0000
commit8f0c89e05a7b52f8c5ae7b451de6fd50732aeb45 (patch)
tree9bf309fce9eff03da8980e84d3de5741627bf96d /shell/ash_test/ash-read/read_ifs.tests
parentbc7177187f6b4f32c2f9562358294dfc7b521f67 (diff)
downloadbusybox-w32-1_13_4.tar.gz
busybox-w32-1_13_4.tar.bz2
busybox-w32-1_13_4.zip
apply post-1.13.3 fixes, bump version to 1.13.41_13_4
Diffstat (limited to 'shell/ash_test/ash-read/read_ifs.tests')
-rwxr-xr-xshell/ash_test/ash-read/read_ifs.tests7
1 files changed, 7 insertions, 0 deletions
diff --git a/shell/ash_test/ash-read/read_ifs.tests b/shell/ash_test/ash-read/read_ifs.tests
new file mode 100755
index 000000000..cf7cd934c
--- /dev/null
+++ b/shell/ash_test/ash-read/read_ifs.tests
@@ -0,0 +1,7 @@
1printf 'a\t\tb\tc\n' | ( IFS=$(printf "\t") read a b c; echo ".$a. .$b. .$c." )
2printf 'a\t\tb\tc\n' | ( IFS=$(printf " \t") read a b c; echo ".$a. .$b. .$c." )
3printf 'a,,b,c\n' | ( IFS="," read a b c; echo ".$a. .$b. .$c." )
4printf 'a,,b,c\n' | ( IFS=" ," read a b c; echo ".$a. .$b. .$c." )
5printf 'a ,, c\n' | ( IFS=" ," read a b c; echo ".$a. .$b. .$c." )
6printf 'a ,, c d\n' | ( IFS=" ," read a b c d; echo ".$a. .$b. .$c. .$d." )
7printf ' a,,b,c,d , ,\n' | ( IFS=" ," read a b c; echo ".$a. .$b. .$c." )