diff options
| author | Barton E. Schaefer <schaefer@zsh.org> | 2015-11-18 11:11:37 -0800 |
|---|---|---|
| committer | Barton E. Schaefer <schaefer@zsh.org> | 2015-11-18 11:11:37 -0800 |
| commit | 59235205c6c8b189b7227f206754aaf485010136 (patch) | |
| tree | 8cdc0cb204cb920a4d7a49d58186f30e53274e35 | |
| parent | 37140: note that <<(...) is < <(...) (diff) | |
| download | zsh-59235205c6c8b189b7227f206754aaf485010136.tar zsh-59235205c6c8b189b7227f206754aaf485010136.tar.gz zsh-59235205c6c8b189b7227f206754aaf485010136.tar.bz2 zsh-59235205c6c8b189b7227f206754aaf485010136.tar.lz zsh-59235205c6c8b189b7227f206754aaf485010136.tar.xz zsh-59235205c6c8b189b7227f206754aaf485010136.tar.zst zsh-59235205c6c8b189b7227f206754aaf485010136.zip | |
37145: suppress alias expansion in skipcomm()
Thus defer parsing aliases in $(...) et al. into the subshell
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | Src/lex.c | 3 |
2 files changed, 8 insertions, 0 deletions
@@ -1,3 +1,8 @@ +2015-11-18 Barton E. Schaefer <schaefer@zsh.org> + + * 37145: Src/lex.c: suppress alias expansion in skipcomm() to + defer parsing aliases in $(...) et al. into the subshell + 2015-11-18 Peter Stephenson <p.stephenson@samsung.com> * 37140: Doc/Zsh/expn.yo: note that <<(...) is < <(...). @@ -2022,7 +2022,9 @@ skipcomm(void) int new_lexstop, new_lex_add_raw; int save_infor = infor; struct lexbufstate new_lexbuf; + int noalias = noaliases; + noaliases = 1; infor = 0; cmdpush(CS_CMDSUBST); SETPARBEGIN @@ -2140,6 +2142,7 @@ skipcomm(void) SETPAREND cmdpop(); infor = save_infor; + noaliases = noalias; return lexstop; #endif |
