summary refs log tree commit diff
path: root/src/funcs/newgrp
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 /src/funcs/newgrp
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 'src/funcs/newgrp')
0 files changed, 0 insertions, 0 deletions
McEnroe 2018-08-06Implement word wrappingJune McEnroe 2018-08-06Use wchar_t strings for all of UIJune McEnroe 2018-08-06Rename line editing functionsJune McEnroe 2018-08-05Initialize all possible color pairsJune McEnroe 2018-08-05Refactor color initializationJune McEnroe 2018-08-05Add ^L redrawJune McEnroe 2018-08-05Use 16 colors if availableJune McEnroe 2018-08-05Limit parsed colors to number of mIRC colorsJune McEnroe 2018-08-04Show source link on exitJune McEnroe 2018-08-04Implement line editing, scrollingJune McEnroe 2018-08-04Handle /topicJune McEnroe