From d1914c5af484791ee5d8f20261c08cecf113d3a9 Mon Sep 17 00:00:00 2001 From: "Barton E. Schaefer" Date: Wed, 20 Sep 2017 10:17:59 -0700 Subject: 41736: NO_INTERACTIVE_COMMENTS in $(...) --- Src/exec.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Src/exec.c') diff --git a/Src/exec.c b/Src/exec.c index d1367660c..31edfab55 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -4509,7 +4509,12 @@ getoutput(char *cmd, int qt) pid_t pid; char *s; - if (!(prog = parse_string(cmd, 0))) + int onc = nocomments; + nocomments = (interact && unset(INTERACTIVECOMMENTS)); + prog = parse_string(cmd, 0); + nocomments = onc; + + if (!prog) return NULL; if ((s = simple_redir_name(prog, REDIR_READ))) { -- cgit 1.4.1