aboutsummaryrefslogtreecommitdiff
path: root/shell/bbsh.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/bbsh.c')
-rw-r--r--shell/bbsh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/bbsh.c b/shell/bbsh.c
index 4f38213c9..06fd0131e 100644
--- a/shell/bbsh.c
+++ b/shell/bbsh.c
@@ -90,7 +90,7 @@ static char *parse_word(char *start, struct command **cmd)
// Grab next word. (Add dequote and envvar logic here)
end = start;
- while (*end && !isspace(*end)) end++;
+ end = skip_non_whitespace(end);
(*cmd)->argv[(*cmd)->argc++] = xstrndup(start, end-start);
// Allocate more space if there's no room for NULL terminator.