From 298919f43a565cc2e130c8cb3f67773f7a54fca1 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 8 Nov 2022 14:12:01 +0000 Subject: users/28338: command substitution with alias edge case. See added regression test. --- Test/D08cmdsubst.ztst | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Test') 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 +> -- cgit 1.4.1