From 3eead7d3ae4ca93c4eda0167e679bd8d5aa1b59b Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 15 Jul 2020 22:20:14 -0500 Subject: toysh: NOSPLIT shouldn't collate whitespace $IFS --- toys/pending/sh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys/pending') diff --git a/toys/pending/sh.c b/toys/pending/sh.c index 0dcf821f..d7615356 100644 --- a/toys/pending/sh.c +++ b/toys/pending/sh.c @@ -1153,7 +1153,7 @@ barf: do { // find end of (split) word - if (qq&1) ss = ifs+strlen(ifs); + if ((qq&1) || (flags&NO_SPLIT)) ss = ifs+strlen(ifs); else for (ss = ifs; *ss; ss += kk) if (utf8chr(ss, TT.ifs, &kk)) break; // when no prefix, not splitting, no suffix: use existing memory -- cgit v1.2.3