mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-09-26 05:50:49 +02:00
41736: NO_INTERACTIVE_COMMENTS in $(...)
This commit is contained in:
parent
2c41dc0b2e
commit
d1914c5af4
@ -1,5 +1,7 @@
|
|||||||
2017-09-20 Barton E. Schaefer <schaefer@zsh.org>
|
2017-09-20 Barton E. Schaefer <schaefer@zsh.org>
|
||||||
|
|
||||||
|
* 41736: NEWS, Src/exec.c: NO_INTERACTIVE_COMMENTS in $(...)
|
||||||
|
|
||||||
* 41731: Doc/Zsh/params.yo: reformat and expand doc for 41698.
|
* 41731: Doc/Zsh/params.yo: reformat and expand doc for 41698.
|
||||||
|
|
||||||
2017-09-18 Oliver Kiddle <opk@zsh.org>
|
2017-09-18 Oliver Kiddle <opk@zsh.org>
|
||||||
|
8
NEWS
8
NEWS
@ -4,6 +4,14 @@ CHANGES FROM PREVIOUS VERSIONS OF ZSH
|
|||||||
|
|
||||||
Note also the list of incompatibilities in the README file.
|
Note also the list of incompatibilities in the README file.
|
||||||
|
|
||||||
|
Changes from 5.4 to 5.4.3
|
||||||
|
-------------------------
|
||||||
|
|
||||||
|
The effect of the NO_INTERACTIVE_COMMENTS option extends into $(...) and
|
||||||
|
`...` command substitutions when used on the command line. Previously,
|
||||||
|
comments were always recognized within command substitutions unless the
|
||||||
|
comment character "#" was disabled via reset of $histchars.
|
||||||
|
|
||||||
Changes from 5.3.1 to 5.4
|
Changes from 5.3.1 to 5.4
|
||||||
-------------------------
|
-------------------------
|
||||||
|
|
||||||
|
@ -4509,7 +4509,12 @@ getoutput(char *cmd, int qt)
|
|||||||
pid_t pid;
|
pid_t pid;
|
||||||
char *s;
|
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;
|
return NULL;
|
||||||
|
|
||||||
if ((s = simple_redir_name(prog, REDIR_READ))) {
|
if ((s = simple_redir_name(prog, REDIR_READ))) {
|
||||||
|
Loading…
Reference in New Issue
Block a user