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

Re: 'whence' question



On Sat, 08 Nov 2014 13:55:08 -0800
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Nov 6,  1:58pm, Bart Schaefer wrote:
> }
> } Yes, we want something LIKE that, but simply calling zputs() doesn't
> } handle either the -v or the -s options, and it seems a shame to
> } duplicate all that code from the existing "if (all)" loop later in the
> } function.
> 
> This is what I was thinking when I asked about ${(k)commands[(I)pat]}.
> I wish there were a better way to make fetchcmdnamnode a closure, but
> what you C is what you get ...

I'm not that much bothered what the code looks like, the question seems
to be more what the result should be consistent with.  If you've worked
that you can decide what needs doing.

pws



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