diff options
Diffstat (limited to 'toys/pending/sh.c')
-rw-r--r-- | toys/pending/sh.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |