mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-28 17:10:59 +01:00
41736: NO_INTERACTIVE_COMMENTS in $(...)
This commit is contained in:
parent
2c41dc0b2e
commit
d1914c5af4
3 changed files with 16 additions and 1 deletions
|
|
@ -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))) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue