diff options
author | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2017-04-23 17:06:26 +0100 |
---|---|---|
committer | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2017-04-23 17:06:26 +0100 |
commit | 68466f327e15579939ff359464c42b2b966a7825 (patch) | |
tree | e5444ba5e0398cfafa29a70ca4c43438a3169aea /Test/D08cmdsubst.ztst | |
parent | 3c78f14d5cfe98cb567cced9cfe283cb890155ef (diff) | |
download | zsh-68466f327e15579939ff359464c42b2b966a7825.tar.gz zsh-68466f327e15579939ff359464c42b2b966a7825.tar.xz 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 'Test/D08cmdsubst.ztst')
-rw-r--r-- | Test/D08cmdsubst.ztst | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Test/D08cmdsubst.ztst b/Test/D08cmdsubst.ztst index 362537349..4e0759e35 100644 --- a/Test/D08cmdsubst.ztst +++ b/Test/D08cmdsubst.ztst @@ -167,3 +167,13 @@ empty=$() && print "'$empty'" 0:Empty $() is a valid assignment >'' + + ( + setopt ignoreclosebraces + alias OPEN='{' CLOSE='};' + eval '{ OPEN print hi; CLOSE } + var=$({ OPEN print bye; CLOSE}) && print $var' + ) +0:Alias expansion needed in parsing substituions +>hi +>bye |