aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2020-05-17 06:38:13 -0500
committerRob Landley <rob@landley.net>2020-05-17 06:38:13 -0500
commitb7196626494b942637c5767095c1d2513cd3441e (patch)
treeeb61c438a04e71768cfe6a21b8c5a56acb020e0f
parent3a0c562393e9f9daf7218fde175bde7e709056c4 (diff)
downloadtoybox-b7196626494b942637c5767095c1d2513cd3441e.tar.gz
Don't ask for line continuation when ending with &
-rw-r--r--toys/pending/sh.c2
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.