summaryrefslogtreecommitdiffstats
path: root/Src/lex.c
diff options
context:
space:
mode:
authorPeter Stephenson <p.w.stephenson@ntlworld.com>2017-04-23 17:06:26 +0100
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2017-04-23 17:06:26 +0100
commit68466f327e15579939ff359464c42b2b966a7825 (patch)
treee5444ba5e0398cfafa29a70ca4c43438a3169aea /Src/lex.c
parent40994: unmeta_one() need not count Meta (diff)
downloadzsh-68466f327e15579939ff359464c42b2b966a7825.tar
zsh-68466f327e15579939ff359464c42b2b966a7825.tar.gz
zsh-68466f327e15579939ff359464c42b2b966a7825.tar.bz2
zsh-68466f327e15579939ff359464c42b2b966a7825.tar.lz
zsh-68466f327e15579939ff359464c42b2b966a7825.tar.xz
zsh-68466f327e15579939ff359464c42b2b966a7825.tar.zst
zsh-68466f327e15579939ff359464c42b2b966a7825.zip
40995: Don't disable alias expansion when finding command substitution limits
This is needed in some unusual cases in order to identify the exit condition without encountering a parse error.
Diffstat (limited to 'Src/lex.c')
-rw-r--r--Src/lex.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/Src/lex.c b/Src/lex.c
index 59e9d1472..b2d9b3f42 100644
--- a/Src/lex.c
+++ b/Src/lex.c
@@ -2060,9 +2060,7 @@ 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
@@ -2189,7 +2187,6 @@ skipcomm(void)
SETPAREND
cmdpop();
infor = save_infor;
- noaliases = noalias;
return lexstop;
#endif