diff options
author | Rob Landley <rob@landley.net> | 2020-05-17 06:38:13 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2020-05-17 06:38:13 -0500 |
commit | b7196626494b942637c5767095c1d2513cd3441e (patch) | |
tree | eb61c438a04e71768cfe6a21b8c5a56acb020e0f /toys | |
parent | 3a0c562393e9f9daf7218fde175bde7e709056c4 (diff) | |
download | toybox-b7196626494b942637c5767095c1d2513cd3441e.tar.gz |
Don't ask for line continuation when ending with &
Diffstat (limited to 'toys')
-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 07ba9b72..d868841d 100644 --- a/toys/pending/sh.c +++ b/toys/pending/sh.c @@ -1947,7 +1947,7 @@ if (BUGBUG>1) dprintf(255, "[%.*s] ", end ? (int)(end-start) : 0, start); // return if HERE document pending or more flow control needed to complete if (sp->expect) return 1; if (sp->pipeline && pl->count != pl->here) return 1; - if (pl->arg->v[pl->arg->c]) return 1; + if (pl->arg->v[pl->arg->c] && strcmp(pl->arg->v[pl->arg->c], "&")) return 1; // Don't need more input, can start executing. |