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

Re: [PATCH] Completion: _opkg: Support gain-privileges



dana wrote on Fri, Jan 11, 2019 at 17:34:17 -0600:
> Also, it's a bit annoying if you have caching enabled and it caches an empty
> array because you forgot to use sudo (or various other reasons depending on
> the function). Maybe _store_cache should learn an option to make it ignore
> empty parameters

I don't think so.  Even an "empty" result could be expensive to compute:
for example, it might require a network round-trip.  I think _opkg
shouldn't call _store_cache when _call_program returns non-zero.

Cheers,

Daniel



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