From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7263 invoked from network); 29 Sep 1997 15:33:06 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 29 Sep 1997 15:33:06 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id LAA05069; Mon, 29 Sep 1997 11:26:21 -0400 (EDT) Resent-Date: Mon, 29 Sep 1997 11:26:21 -0400 (EDT) From: "Bart Schaefer" Message-Id: <970929082652.ZM11122@candle.brasslantern.com> Date: Mon, 29 Sep 1997 08:26:52 -0700 In-Reply-To: <199709291025.MAA06202@sgi.ifh.de> Comments: In reply to Peter Stephenson "Re: is text file?" (Sep 29, 12:25pm) References: <199709291025.MAA06202@sgi.ifh.de> X-Mailer: Z-Mail (4.0b.820 20aug96) To: zsh-workers@math.gatech.edu (Zsh hackers list) Subject: Re: is text file? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Resent-Message-ID: <"UKToD2.0.8F1.TYyBq"@math> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/3537 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu On Sep 29, 12:25pm, Peter Stephenson wrote: } Subject: Re: is text file? } } "Bart Schaefer" wrote: } > % ls **/*~*(${~${(j/|/)fignore}})(.) } > } > (Somebody tell me why the extra ${~...} is needed in that expression.) } } The `|' needs to be tokenised. Otherwise, it looks for the pattern } '.o|~|.pro|.dvi' or whatever as a literal file name. That was the answer I wanted, thanks. } Or do you mean, why can't I put the ~ in the same ${...} I would have asked that in a separate message to zsh-workers, but I figured out } % echo *(${(j/|/)~fignore}) shortly after I'd sent the previous message. } (Or did you mean, why doesn't it go between the { and the (, in which } case the answer is `it just doesn't, but maybe it should say so in } the manual'.) In spite of Zoltan's response to this, I don't think it would hurt for the manual to make an explicit statements about mixing ${( with ${~ ${= etc., particularly because of things like ${(j//)#foo} -ne ${#{$(j//)foo}}. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com