summaryrefslogtreecommitdiffstats
path: root/Test/D08cmdsubst.ztst
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/D08cmdsubst.ztst
parent50874: fix handling of tty signals for jobs in the current shell when waiting... (diff)
downloadzsh-298919f43a565cc2e130c8cb3f67773f7a54fca1.tar
zsh-298919f43a565cc2e130c8cb3f67773f7a54fca1.tar.gz
zsh-298919f43a565cc2e130c8cb3f67773f7a54fca1.tar.bz2
zsh-298919f43a565cc2e130c8cb3f67773f7a54fca1.tar.lz
zsh-298919f43a565cc2e130c8cb3f67773f7a54fca1.tar.xz
zsh-298919f43a565cc2e130c8cb3f67773f7a54fca1.tar.zst
zsh-298919f43a565cc2e130c8cb3f67773f7a54fca1.zip
users/28338: command substitution with alias edge case.
See added regression test.
Diffstat (limited to 'Test/D08cmdsubst.ztst')
-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
+>