about summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorPeter Stephenson <p.stephenson@samsung.com>2022-11-08 14:12:01 +0000
committerPeter Stephenson <p.stephenson@samsung.com>2022-11-08 14:12:01 +0000
commit298919f43a565cc2e130c8cb3f67773f7a54fca1 (patch)
tree76c81841550752479c536db1f35e04516a243a9c /Test
parent188c5cd518b512073d3fd1dbf09c91b7968efcaa (diff)
downloadzsh-298919f43a565cc2e130c8cb3f67773f7a54fca1.tar.gz
zsh-298919f43a565cc2e130c8cb3f67773f7a54fca1.tar.xz
zsh-298919f43a565cc2e130c8cb3f67773f7a54fca1.zip
users/28338: command substitution with alias edge case.
See added regression test.
Diffstat (limited to 'Test')
-rw-r--r--Test/D08cmdsubst.ztst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Test/D08cmdsubst.ztst b/Test/D08cmdsubst.ztst
index 04bf698aa..e415831a0 100644
--- a/Test/D08cmdsubst.ztst
+++ b/Test/D08cmdsubst.ztst
@@ -177,3 +177,11 @@
 0:Alias expansion needed in parsing substitutions
 >hi
 >bye
+
+# This should silently print a blank line; the original problem was
+# a parse error as the last character of the unexpanded alias
+# was erased, symptom: "command not found: W"
+  alias WI='while {false}'
+  eval 'echo $(WI blah)'
+0:Aliases with braces in command substitution can cause havoc
+>