From 68466f327e15579939ff359464c42b2b966a7825 Mon Sep 17 00:00:00 2001
From: Peter Stephenson
Date: Sun, 23 Apr 2017 17:06:26 +0100
Subject: 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.
---
Test/D08cmdsubst.ztst | 10 ++++++++++
1 file changed, 10 insertions(+)
(limited to 'Test/D08cmdsubst.ztst')
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
--
cgit 1.4.1