diff options
| author | Peter Stephenson <pws@zsh.org> | 2016-11-03 10:30:00 +0000 |
|---|---|---|
| committer | Peter Stephenson <pws@zsh.org> | 2016-11-03 10:30:00 +0000 |
| commit | 4073a6655cafc78728cb126cfe44e89cc7ba720a (patch) | |
| tree | edfc81de25483aa5b84de0d978180188d94d675a /Test/D04parameter.ztst | |
| parent | 39811: vi-repeat-change must not be the "motion" of vi-change, lest it infini... (diff) | |
| download | zsh-4073a6655cafc78728cb126cfe44e89cc7ba720a.tar zsh-4073a6655cafc78728cb126cfe44e89cc7ba720a.tar.gz zsh-4073a6655cafc78728cb126cfe44e89cc7ba720a.tar.bz2 zsh-4073a6655cafc78728cb126cfe44e89cc7ba720a.tar.lz zsh-4073a6655cafc78728cb126cfe44e89cc7ba720a.tar.xz zsh-4073a6655cafc78728cb126cfe44e89cc7ba720a.tar.zst zsh-4073a6655cafc78728cb126cfe44e89cc7ba720a.zip | |
39815: Read input to end on parse error in $(...) inside a string.
This allows ${(z)} to output the whole string, although we can't do
word splitting from the error onwards.
Diffstat (limited to 'Test/D04parameter.ztst')
| -rw-r--r-- | Test/D04parameter.ztst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst index 762305197..97c8ba3fc 100644 --- a/Test/D04parameter.ztst +++ b/Test/D04parameter.ztst @@ -631,6 +631,14 @@ >; >(( echo 42 + # From parse error on it's not possible to split. + # Just check we get the complete string. + foo='echo $(|||) bar' + print -rl ${(z)foo} +0:$($(z)} with parse error in command substitution. +>echo +>$(|||) bar + psvar=(dog) setopt promptsubst foo='It shouldn'\''t $(happen) to a %1v.' |
