From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14349 invoked by alias); 21 May 2013 15:29:46 -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: 31418 Received: (qmail 9746 invoked from network); 21 May 2013 15:29:39 -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=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_PASS autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at samsung.com does not designate permitted sender hosts) X-AuditID: cbfec7f4-b7fd76d0000035e1-ce-519b90821552 Date: Tue, 21 May 2013 16:19:28 +0100 From: Peter Stephenson To: zsh-workers@zsh.org Subject: Re: Missing "--" in the "age" function Message-id: <20130521161928.5c59471f@pwslap01u.europe.root.pri> In-reply-to: <20130521115332.GA9976@chaz.gmail.com> References: <20130521115332.GA9976@chaz.gmail.com> Organization: Samsung Cambridge Solution Centre X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuphluLIzCtJLcpLzFFi42I5/e/4Vd2mCbMDDRbN47I42PyQyYHRY9XB D0wBjFFcNimpOZllqUX6dglcGbubHAu+81e8nLqerYFxAm8XIyeHhICJxKMFxxghbDGJC/fW s3UxcnEICSxllJjz9y0jhLOcSeLVi+ssIFUsAqoSx+b+BbPZBAwlpm6aDdYtIiAucXbtebC4 sIC+RPejA6wgNq+AvUR741WwGk4BY4mJsz+ygdhCAkYSjw8fBavnB6q/+vcTE8QV9hIzr5xh hOgVlPgx+R5YDbOAlsTmbU2sELa8xOY1b5knMArMQlI2C0nZLCRlCxiZVzGKppYmFxQnpeca 6hUn5haX5qXrJefnbmKEhOCXHYyLj1kdYhTgYFTi4bVsmB0oxJpYVlyZe4hRgoNZSYR3vhNQ iDclsbIqtSg/vqg0J7X4ECMTB6dUA2PenGncl6Pmfu9hYfbafXbG+UervkWePekmtXLPX+MM 9zPiMzOkF3zwWFsU4r6K62jD9mkirTqamSHZO9/93vlYJ76q/V+J6nSRJbP+TE9vXjwleNPF KdLBLor7WcS/yuzNXPJo6quga+xH7a/f2nr1xxfF5pl22x/w2xxTu/9JZvtLWY098hffKrEU ZyQaajEXFScCANQ9L58fAgAA On Tue, 21 May 2013 12:53:32 +0100 Stephane Chazelas wrote: > Also, the business about $1/$2 (not $AGEREF/$AGEREF2!) starting > with ":" to mean take the date (not time!) from reference files > seems not to be documented. I can't remember if I meant people to use it, but I suppose I did. diff --git a/Doc/Zsh/calsys.yo b/Doc/Zsh/calsys.yo index 259eb23..b3eb454 100644 --- a/Doc/Zsh/calsys.yo +++ b/Doc/Zsh/calsys.yo @@ -651,16 +651,24 @@ date specification must be quoted to ensure tt(age) receives the correct arguments, hence the use of the additional colon to separate the date and time. -example(AGEREF1=2006/10/04:10:15 +example(AGEREF=2006/10/04:10:15 AGEREF2=2006/10/04:10:45 print *+LPAR()PLUS()age+RPAR()) This shows the same example before using another form of argument -passing. The dates and times in the parameters tt(AGEREF1) and tt(AGEREF2) +passing. The dates and times in the parameters tt(AGEREF) and tt(AGEREF2) stay in effect until unset, but will be overridden if any argument is passed as an explicit argument to age. Any explicit argument causes both parameters to be ignored. +Instead of an explicit date and time, it's possible to use the +modification time of a file as the date and time for either argument +by introducing the file name with a colon: + +example(print *+LPAR()e-age :file1 :file2-+RPAR()) + +This matches all files modified no earlier than tt(file1) and +no later than tt(file2). texinode(Calendar Styles)(Calendar Utility Functions)(Calendar System User Functions)(Calendar Function System) sect(Styles) diff --git a/Functions/Calendar/age b/Functions/Calendar/age index 2348da5..c636bdf 100644 --- a/Functions/Calendar/age +++ b/Functions/Calendar/age @@ -18,7 +18,7 @@ # are allowed, but whitespace must be quoted to ensure age receives # the correct arguments. # -# AGEREF1=2006/10/04:10:15 +# AGEREF=2006/10/04:10:15 # AGEREF2=2006/10/04:10:45 # print *(+age) # pws