From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11296 invoked by alias); 14 Dec 2016 15:59:40 -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: X-Seq: 40186 Received: (qmail 16405 invoked from network); 14 Dec 2016 15:59:39 -0000 X-Qmail-Scanner-Diagnostics: from rcpt-mqugw.biglobe.ne.jp by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(133.208.100.4):SA:0(-3.8/5.0):. Processed in 1.15336 secs); 14 Dec 2016 15:59:39 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-3.8 required=5.0 tests=RCVD_IN_DNSWL_LOW, RP_MATCHES_RCVD,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: takimoto-j@kba.biglobe.ne.jp X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at spf01.biglobe.ne.jp designates 133.208.100.4 as permitted sender) X-Biglobe-Sender: Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: caching mechanism and Re: PATCH Completion for _yum From: "Jun T." In-Reply-To: <35304.1481727834@hydra.kiddle.eu> Date: Thu, 15 Dec 2016 00:23:44 +0900 Content-Transfer-Encoding: 7bit Message-Id: <4C0CE80C-4534-4118-8AA6-022FF9FFCF05@kba.biglobe.ne.jp> References: <61b3fb7c-4de6-d8da-29b4-b3802d98b162@mathphys.fsk.uni-heidelberg.de> <20161027013054.GA15799@fujitsu.shahaf.local2> <484fa75d-9361-df92-06b4-54fad37231f4@mathphys.fsk.uni-heidelberg.de> <98208.1478792966@hydra.kiddle.eu> <765413af-36a5-9afb-dd8a-7e1a39d05dde@mathphys.fsk.uni-heidelberg.de> <31607.1478915523@hydra.kiddle.eu> <75905.1479841546@hydra.kiddle.eu> <6472.1481623850@hydra.kiddle.eu> <161213083842.ZM21919@torch.brasslantern.com> <161213092141.ZM22063@torch.brasslantern.com> <19089.1481715508@hydra.kiddle.eu> <35304.1481727834@hydra.kiddle.eu> To: zsh-workers@zsh.org X-Mailer: Apple Mail (2.1878.6) X-Biglobe-Spnum: 61360 2016/12/15 00:03, Oliver Kiddle wrote: > "Jun T." wrote: >> >> If _cache_invalid returns 0, then _retrieve_cache should return 1 >> (we can't retrieve from an invalid cache, unless another zsh has > > _cache_invalid returning 0 implies that the cache has been deemed stale > not that it is invalid. So _retrieve_cache will happily use it and > return 0. _retrieve_cache, line 21: _cache_invalid "$_cache_ident" && return 1