Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] Completion: _opkg: Support gain-privileges
- X-seq: zsh-workers 43991
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Zsh workers <zsh-workers@xxxxxxx>
- Subject: Re: [PATCH] Completion: _opkg: Support gain-privileges
- Date: Sat, 12 Jan 2019 17:10:28 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=date:from:to:subject:message-id:references :mime-version:content-type:in-reply-to; s=fm2; bh=JMN290wP4GKpAZ KbDHt/BZJ+2wkzi1jL77YyTnWmQX4=; b=huj0mL3uzsPmR1r9HJY+h4f/BZyNQO UzVz3Boyga8b12rHImOHnkEfxgpT5pR9r230Jh0+ovxk2ji9LjKKeryC+w519HRS 2uK2eCp5LDWP8eynOo0lcOSmdMxfKYZ0K0f0rwsyHYt7CaqQqkH8hma9wmA0Em9w 9ESWfqJ60pmzWQ4bl9SKWp+XuUId3dgX/bwOoO1GQHJYv9UW8fc9vovS/Uir3C3A 3k8jHdygNsX/h8vLEmtU4iZ0UC3SkrNUrdfPjGv2Y8ciiZlIj5TvEyKDrQCw5oVB MklnvwADE5hXzOO4ENuLNyoXeuUKuvzWKbcVhvHUtFgWAOPI02kh7pjA==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=JMN290 wP4GKpAZKbDHt/BZJ+2wkzi1jL77YyTnWmQX4=; b=WXsCbgBp6ROKxRVp+lAb5o 9ipAZ2cJ/CBU/sH3a3sWbEdTOFJcPINta704SoFRWtemxPvmKvhYafixhRu5AWrt ka0tStd3NDevwDXBgSGmuns6q34EyGzhYm4leYj20oghREcc8aJjX6KehQwof4n2 HefhqdYYbvGEhQxYAfkDbsJ29S5Qsyhjn0+bzXoa1UP9SDaU8FUkMW4HtJ4NKXCl 6ubUt/4QFGfJlVytUFR6Wff60zM/klGWa6yi40wbXsfkiP2NxecF4cp4M03O89/D VH0GICGHzQYghb4iYYdWtB+Yv1gOFSfvhFgJDfPAJhnTNLiflTdZQWvCGWfgev0w ==
- In-reply-to: <E1AAD4A3-482A-4173-8579-05F0B38951B1@dana.is>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <E1AAD4A3-482A-4173-8579-05F0B38951B1@dana.is>
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