From b7196626494b942637c5767095c1d2513cd3441e Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 17 May 2020 06:38:13 -0500 Subject: Don't ask for line continuation when ending with & --- toys/pending/sh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys/pending/sh.c') 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. -- cgit v1.2.3