From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8155 invoked by alias); 10 Dec 2011 17:45:27 -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: 29980 Received: (qmail 29856 invoked from network); 10 Dec 2011 17:45:26 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW, T_DKIM_INVALID,T_TO_NO_BRKTS_FREEMAIL autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.220.171 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=k47Jb/utbcC832EVT1CXRVtpot77LyUimNBFB9FFu4o=; b=xS51STK2ud4xgVZQj3RlxeFaJ6bsKk+U7wP0ZFdKORNM00TRDsTEgfHkAOZqJPlI0x 4u0JRg3aQ7Kbgnn/zFDyhIjKZbgzptRU920Wq/nJuXMHt03qm/ueoaE9IxrlAMs7jfui PqptwIgIMYCRo/1fO3woEzj5j5iJ9CyTdDPXY= MIME-Version: 1.0 In-Reply-To: <20111210170956.GD8394@andrew.cmu.edu> References: <20111210170956.GD8394@andrew.cmu.edu> Date: Sat, 10 Dec 2011 18:37:04 +0100 Message-ID: Subject: Re: Documentation error From: Mikael Magnusson To: gi1242+zsh@gmail.com, zsh-workers@zsh.org Content-Type: text/plain; charset=UTF-8 On 10 December 2011 18:09, wrote: > Hi All, > > Is the following an error in the documentation from man zshcompsys: > > _example_caching_policy () { > # rebuild if cache is more than a week old > local -a oldp > oldp=( "$1"(Nmw+1) ) > (( $#oldp )) > } > > Technically won't this rebuild the cache if it's more than TWO weeks > old? "$1"(Nmw+0) seems to do one week old for me, It depends on what you mean by more than one week. The way it works in zsh is that -, +, and no sign are disjunct sets, so mw-1, mw1, mw+1 don't have any overlap. mw1 is any files that are one week old, which is 7-13 days, so more than that is 14 days old (two weeks). -- Mikael Magnusson