summary refs log tree commit diff
path: root/ChangeLog
diff options
context:
space:
mode:
authorStefan Potyra <stefan.potyra@informatik.uni-erlangen.de>2009-08-11 12:46:26 +1000
committerHerbert Xu <herbert@gondor.apana.org.au>2009-08-11 12:46:26 +1000
commit55c46b7286f5d9f2d8291158203e2b61d2494420 (patch)
treef4ea6cd236d953cd196ff85d4a447bcd062a2257 /ChangeLog
parent[EXPAND] Fix quoted pattern patch breakage (diff)
downloaddash-55c46b7286f5d9f2d8291158203e2b61d2494420.tar.gz
dash-55c46b7286f5d9f2d8291158203e2b61d2494420.zip
[BUILTIN] Honor tab as IFS whitespace when splitting fields in readcmd
When I try to split fields by tabs, dash doesn't honour multiple tabs
between fields as whitespace (at least that's how I interpret [1],
please correct me if I'm wrong).

#!/bin/sh

# "1\t2\t\t3"
TESTSTRING="1	2		3"

# only "\t"
IFS="	"
echo "$TESTSTRING" | while read p1 p2 p3; do
	echo "p1=${p1}, p2=${p2}, p3=${p3}"
done

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog4
1 files changed, 4 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index e6a1d26..247b6e8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-08-11  Stefan Potyra <stefan.potyra@informatik.uni-erlangen.de>
+
+	* Honor tab as IFS whitespace when splitting fields in readcmd.
+
 2009-06-27  Herbert Xu <herbert@gondor.apana.org.au>
 
 	* Fix quoted pattern patch breakage.