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

Re: bug with hidden prefixes



On Jun 11, 2015 8:53 AM, "Roman Neuhauser" <neuhauser@xxxxxxxxxx> wrote:
>
> # schaefer@xxxxxxxxxxxxxxxx / 2015-06-11 08:45:58 -0700:
> >
> > torch% _foo() {
> >   local ret=1
> >   compadd -p /dev/ -M 'r:|/=** r:|=*' one two && ret=0
> > :  compadd three && ret=0
> >   return ret
> > }
>
> it's not actually removed, instead it clobbers ret with 0 no matter
> what the previous compadd did.

Doesn't actually matter as the compadd always succeeds.


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