From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24968 invoked from network); 26 Aug 1999 07:08:45 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 26 Aug 1999 07:08:45 -0000 Received: (qmail 16132 invoked by alias); 26 Aug 1999 07:08:37 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7489 Received: (qmail 16125 invoked from network); 26 Aug 1999 07:08:37 -0000 Date: Thu, 26 Aug 1999 09:08:21 +0200 (MET DST) Message-Id: <199908260708.JAA14516@beta.informatik.hu-berlin.de> From: Sven Wischnowsky To: zsh-workers@sunsite.auc.dk In-reply-to: "Bart Schaefer"'s message of Wed, 25 Aug 1999 15:04:15 +0000 Subject: Re: PATCH: Re: Files modified after a given date Bart Schaefer wrote: > On Aug 25, 4:20pm, Sven Wischnowsky wrote: > } Subject: PATCH: Re: Files modified after a given date > } > } > } Zefram wrote: > } > That's one of the many things I never got round to. I was going to > } > have patterns like "*(F:func:)" call the shell function "func" with the > } > name of each file which otherwise matches the glob pattern > } > } [...] it also allows one to give additional arguments as in > } `*(F:func::arg1::arg2:)' and so on -- these are available as `$2' > } etc. in the function. And finally it allows the function to say *what* > } should be included by setting the `reply' or `REPLY' parameter to a > } string or array (`REPLY' is only tested for a string value). > } > } (Maybe this is going a bit too far?) > > I don't have a problem with using reply/REPLY, but I think supplying > additional arguments inside the glob qualifier is a bit excessive (and also > accounts for most of the size of this patch, no?). No, it's basically the loop in glob() -- 18 lines and without it qualshfunc() would be slightly bigger. (And it may save someone from implementing sets of wrapper functions, of course.) But if everyone prefers it without the arguments, I'm ready to take it out. Bye Sven -- Sven Wischnowsky wischnow@informatik.hu-berlin.de