diff options
| author | Peter Stephenson <p.stephenson@samsung.com> | 2022-11-08 14:12:01 +0000 |
|---|---|---|
| committer | Peter Stephenson <p.stephenson@samsung.com> | 2022-11-08 14:12:01 +0000 |
| commit | 298919f43a565cc2e130c8cb3f67773f7a54fca1 (patch) | |
| tree | 76c81841550752479c536db1f35e04516a243a9c /Test/D08cmdsubst.ztst | |
| parent | 50874: fix handling of tty signals for jobs in the current shell when waiting... (diff) | |
| download | zsh-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.ztst | 8 |
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 +> |
