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

Re: Remind me why ${name+word} is the way it is?



On Wed, Nov 16, 2016 at 6:33 PM, Han Pingtian <hanpt@xxxxxxxxxxxxxxxxxx> wrote:
>
> % name=a;echo ${name:+foo[bar]}
> zsh: no match
> %
> url-quote-magic:10: no match

What zsh version are you using?  I can't reproduce this (tried 5.2 and
git HEAD).

Line 10 is

words=("${(@Q)${(z)lbuf}}")

To get the "no match" message you have to have cshnullglob set, and
obviously you also have self-insert remapped to url-quote-magic.  I
suspect you have another setting that is influencing this.



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