summaryrefslogtreecommitdiff
path: root/Test
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 /Test
parent3c78f14d5cfe98cb567cced9cfe283cb890155ef (diff)
downloadzsh-68466f327e15579939ff359464c42b2b966a7825.tar.gz
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')
-rw-r--r--Test/D08cmdsubst.ztst10
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