Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

"zstyle -L" doesn't quote properly



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)




Messages sorted by: Reverse Date, Date, Thread, Author