mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-27 16:50:58 +01:00
35667: fix command substitution that starts but doesn't finish in alias
This commit is contained in:
parent
d01a8a4553
commit
dce1f33c02
5 changed files with 28 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue