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

Re: [PATCH 3/4] docs: _wanted: Clarify the example and point to another one.



Bart Schaefer wrote:
> On Sun, Sep 26, 2021 at 1:47 AM Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
> >
> > -    compadd matches...)
> > +    compadd -- var(match1) var(match2)...)
>
> Hmm ... I'm uncertain about using var() inside example().  This is
> going to render in "info" as

Also, note that listing no matches at all with compadd is still a
completely valid compadd command. This can be useful because you might
generate the list of candidate matches from a command and pass the list
straight to compadd without first checking whether any were generated.

Doesn't this updated usage imply that there must be at least one?

Oliver




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