Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
"zstyle -L" doesn't quote properly
- X-seq: zsh-workers 48424
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: "zstyle -L" doesn't quote properly
- Date: Wed, 7 Apr 2021 09:42:12 -0700
- Archived-at: <https://zsh.org/workers/48424>
- List-id: <zsh-workers.zsh.org>
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