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

Re: compadd -qS' ' should escape the space



On 5/3/07, Nikolai Weibull <now@xxxxxxxx> wrote:
The following code will only do the right thing if I have started the
current word with a ":

  declare -a colors

  colors=(black red green yellow blue magenta cyan white)

  _describe -t color 'color' colors -qS' '

I'd expect the space used as a suffix to be escaped.

I'm stupid.  I can simply escape the space myself.

 nikolai



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