From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 747204a2 for ; Sat, 12 Jan 2019 17:20:16 +0000 (UTC) Received: (qmail 18529 invoked by alias); 12 Jan 2019 17:19:59 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 43991 Received: (qmail 20173 invoked by uid 1010); 12 Jan 2019 17:19:59 -0000 X-Qmail-Scanner-Diagnostics: from out1-smtp.messagingengine.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.100.2/25112. spamassassin: 3.4.2. Clear:RC:0(66.111.4.25):SA:0(-1.1/5.0):. Processed in 5.711118 secs); 12 Jan 2019 17:19:59 -0000 X-Envelope-From: d.s@daniel.shahaf.name X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | 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 == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtledrfeejgddutddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfquhhtnecuuegrihhlohhuthemucef tddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpeffhffvuffkfh ggtggujggfsehttddttddtredvnecuhfhrohhmpeffrghnihgvlhcuufhhrghhrghfuceo ugdrshesuggrnhhivghlrdhshhgrhhgrfhdrnhgrmhgvqeenucfkphepjeelrddukeefrd egkedrudelgeenucfrrghrrghmpehmrghilhhfrhhomhepugdrshesuggrnhhivghlrdhs hhgrhhgrfhdrnhgrmhgvnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Date: Sat, 12 Jan 2019 17:10:28 +0000 From: Daniel Shahaf To: Zsh workers Subject: Re: [PATCH] Completion: _opkg: Support gain-privileges Message-ID: <20190112171028.36htyrmgrxat4jle@tarpaulin.shahaf.local2> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) 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