zsh-workers
 help / color / mirror / code / Atom feed
* "zstyle -L" doesn't quote properly
@ 2021-04-07 16:42 Bart Schaefer
  2021-04-07 17:36 ` Daniel Shahaf
  0 siblings, 1 reply; 6+ messages in thread
From: Bart Schaefer @ 2021-04-07 16:42 UTC (permalink / raw)
  To: Zsh hackers list

This occurs as a result of a typo when defining the style (the word
"menu" is misplaced after a copy/paste/edit) but produces garbage
output.  I think the assumption is that in the syntax ...

  zstyle [ -e | - | -- ] PATTERN STYLE STRING ...

... the STYLE must be a simple word and therefore doesn't need
quoting, but in fact the command will accept any sort of string in
that position.

% zstyle -e ':completion::*:default' '[[ $WIDGET =
(|reverse-)menu-complete ]] && reply=(menu yes select interactive)'
% zstyle -L
zstyle -e ':completion::*:default' [[ $WIDGET =
(|reverse-)menu-complete ]] && reply=(menu yes select interactive)


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

end of thread, other threads:[~2021-04-07 19:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-07 16:42 "zstyle -L" doesn't quote properly Bart Schaefer
2021-04-07 17:36 ` Daniel Shahaf
2021-04-07 18:12   ` Bart Schaefer
2021-04-07 18:24     ` Daniel Shahaf
2021-04-07 19:21       ` Peter Stephenson
2021-04-07 19:43         ` Bart Schaefer

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).