Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[BUG] Weird _expand & _complete behavior for $parameters in "double quotes"
- X-seq: zsh-workers 48812
- From: Marlon Richert <marlon.richert@xxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: [BUG] Weird _expand & _complete behavior for $parameters in "double quotes"
- Date: Tue, 11 May 2021 13:24:31 +0300
- Archived-at: <https://zsh.org/workers/48812>
- List-id: <zsh-workers.zsh.org>
Tested with 9e38ab81785c4ac755a7e78d2fe7a7db92bdf375:
comptesteval "typeset -a bar=({$'\\0'..$'\\C-?'})"
comptesteval 'typeset -A bat=( "$bar[@]" )'
comptesteval 'typeset bay="$bar"'
comptesteval 'unsetopt listambiguous'
comptest $': "$ba"\C-B\t\t'
0: complete parameter in double quotes
>line: {: "$ba}{"}
>DESCRIPTION:{parameter}
>NO:{bar}
>NO:{bat}
>NO:{bay}
>line: {: "$bar}{"}
% make TESTNUM=Y01 check
[...]
-line: {: "$ba}{"}
+line: {: "$ba}{""}
DESCRIPTION:{parameter}
NO:{bar}
NO:{bat}
NO:{bay}
-line: {: "$bar}{"}
+line: {: \"\"\"}{}
+DESCRIPTION:{expansions}
+NO:{\"\"\"}
+DESCRIPTION:{all expansions}
+NO:{\"\"\"}
+DESCRIPTION:{original}
+NO:{"$ba""}
Test ./Y01completion.ztst failed: output differs from expected as
shown above for:
comptesteval 'unsetopt listambiguous'
comptest $': "$ba"\C-B\t\t'
Was testing: complete parameter in double quotes
Messages sorted by:
Reverse Date,
Date,
Thread,
Author