diff options
| author | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2021-09-09 20:05:39 +0100 |
|---|---|---|
| committer | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2021-09-09 20:05:39 +0100 |
| commit | db46c9cd5844240fb6015666c8e2a12a0a3a6ead (patch) | |
| tree | 096490f0615dea304e29a2d8b03115b0ecc6b4f3 /Src/exec.c | |
| parent | unposted: fix typo in earlier log entry (diff) | |
| download | zsh-db46c9cd5844240fb6015666c8e2a12a0a3a6ead.tar zsh-db46c9cd5844240fb6015666c8e2a12a0a3a6ead.tar.gz zsh-db46c9cd5844240fb6015666c8e2a12a0a3a6ead.tar.bz2 zsh-db46c9cd5844240fb6015666c8e2a12a0a3a6ead.tar.lz zsh-db46c9cd5844240fb6015666c8e2a12a0a3a6ead.tar.xz zsh-db46c9cd5844240fb6015666c8e2a12a0a3a6ead.tar.zst zsh-db46c9cd5844240fb6015666c8e2a12a0a3a6ead.zip | |
49353: Fix comments in sourced file.
If the file was sourced from an interactive shell with
INTERACTIVE_COMMENTS not set, comments were not parsed.
Note there is a remaining edge case where the sourced
file is in fact entered at the comment line.
Diffstat (limited to 'Src/exec.c')
| -rw-r--r-- | Src/exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/exec.c b/Src/exec.c index 79d8064b6..1f23a862d 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -4622,7 +4622,7 @@ getoutput(char *cmd, int qt) char *s; int onc = nocomments; - nocomments = (interact && unset(INTERACTIVECOMMENTS)); + nocomments = (interact && !sourcelevel && unset(INTERACTIVECOMMENTS)); prog = parse_string(cmd, 0); nocomments = onc; |
