summary refs log tree commit diff
path: root/src/expand.h
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/expand.h
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/expand.h')
-rw-r--r--src/expand.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/expand.h b/src/expand.h
index 1862aea..405af0b 100644
--- a/src/expand.h
+++ b/src/expand.h
@@ -67,6 +67,9 @@ void expari(int);
 #define rmescapes(p) _rmescapes((p), 0)
 char *_rmescapes(char *, int);
 int casematch(union node *, char *);
+void recordregion(int, int, int);
+void removerecordregions(int); 
+void ifsbreakup(char *, struct arglist *);
 
 /* From arith.y */
 intmax_t arith(const char *);