aboutsummaryrefslogtreecommitdiff
path: root/toys
diff options
context:
space:
mode:
Diffstat (limited to 'toys')
-rw-r--r--toys/pending/sh.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/toys/pending/sh.c b/toys/pending/sh.c
index 0ccaa792..02277fe0 100644
--- a/toys/pending/sh.c
+++ b/toys/pending/sh.c
@@ -1779,9 +1779,10 @@ barf:
}
// Skip trailing seperator (combining whitespace)
+ kk = 0;
while ((jj = utf8chr(ss, TT.ff->ifs, &ll))) {
+ if (!iswspace(jj) && kk++) break;
ss += ll;
- if (!iswspace(jj)) break;
}
} while (*(ifs = ss));
} while (!(mm == aa.c));