zsh-workers
 help / color / mirror / code / Atom feed
* [BUG] Weird _expand & _complete behavior for $parameters in "double quotes"
@ 2021-05-11 10:24 Marlon Richert
  2021-05-11 11:05 ` Bart Schaefer
  0 siblings, 1 reply; 8+ messages in thread
From: Marlon Richert @ 2021-05-11 10:24 UTC (permalink / raw)
  To: Zsh hackers list

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-05-24 20:20 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-11 10:24 [BUG] Weird _expand & _complete behavior for $parameters in "double quotes" Marlon Richert
2021-05-11 11:05 ` Bart Schaefer
2021-05-11 17:32   ` Marlon Richert
2021-05-11 19:40     ` Bart Schaefer
2021-05-12  6:43       ` Marlon Richert
2021-05-23 21:02     ` Lawrence Velázquez
2021-05-24 20:13       ` Bart Schaefer
2021-05-24 20:19         ` Daniel Shahaf

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).