diff options
author | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2015-07-01 21:44:50 +0100 |
---|---|---|
committer | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2015-07-01 21:44:50 +0100 |
commit | dce1f33c02c855e9d5f588716d7e9ddaea3887ba (patch) | |
tree | 23b45c6ed6a6cce57163404a19060d872c3e4d85 /Test | |
parent | d01a8a4553520283ab6a011b984b7c2a945627dd (diff) | |
download | zsh-dce1f33c02c855e9d5f588716d7e9ddaea3887ba.tar.gz zsh-dce1f33c02c855e9d5f588716d7e9ddaea3887ba.tar.xz zsh-dce1f33c02c855e9d5f588716d7e9ddaea3887ba.zip |
35667: fix command substitution that starts but doesn't finish in alias
Diffstat (limited to 'Test')
-rw-r--r-- | Test/D03procsubst.ztst | 6 | ||||
-rw-r--r-- | Test/D08cmdsubst.ztst | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/Test/D03procsubst.ztst b/Test/D03procsubst.ztst index c763f6e0f..07ec63996 100644 --- a/Test/D03procsubst.ztst +++ b/Test/D03procsubst.ztst @@ -88,6 +88,7 @@ print something=${:-=(echo 'C,D),(F,G)'} 1: Graceful handling of bad substitution in enclosed context ?(eval):1: unterminated `=(...)' +# '` () { print -n "first: " @@ -115,3 +116,8 @@ 0:Process substitution as anonymous function argument >Execute a complicated order first >This line was brought to you by the letters F and D + + alias foo='cat <(' + eval 'foo echo this is bound to work)' +0:backtacking within command string parsing with alias still pending +>this is bound to work diff --git a/Test/D08cmdsubst.ztst b/Test/D08cmdsubst.ztst index a4c69a010..89e725966 100644 --- a/Test/D08cmdsubst.ztst +++ b/Test/D08cmdsubst.ztst @@ -148,3 +148,8 @@ ) after 0:Parsing of command substitution with ummatched parentheses: with frills >before start Universe began with u and ended with a crunch end after + + alias foo='echo $(' + eval 'foo echo this just works, OK\?)' +0:backtracking within command string parsing with alias still pending +>this just works, OK? |