From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3115 invoked from network); 16 Feb 2000 10:58:55 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 16 Feb 2000 10:58:55 -0000 Received: (qmail 29358 invoked by alias); 16 Feb 2000 10:58:39 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9760 Received: (qmail 29350 invoked from network); 16 Feb 2000 10:58:38 -0000 From: "Bart Schaefer" Message-Id: <1000216105755.ZM22565@candle.brasslantern.com> Date: Wed, 16 Feb 2000 10:57:55 +0000 In-Reply-To: <200002161011.LAA16009@beta.informatik.hu-berlin.de> Comments: In reply to Sven Wischnowsky "Re: help with _match, globcomplete etc. (with a PATCH)" (Feb 16, 11:11am) References: <200002161011.LAA16009@beta.informatik.hu-berlin.de> X-Mailer: Z-Mail (5.0.0 30July97) To: Sven Wischnowsky , zsh-workers@sunsite.auc.dk Subject: Re: help with _match, globcomplete etc. (with a PATCH) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Feb 16, 11:11am, Sven Wischnowsky wrote: } Subject: Re: help with _match, globcomplete etc. (with a PATCH) } } Bart Schaefer wrote: } } > zsh% arr=('[sS]' Src/M ../) } > zsh% print -l ${~^arr}* } > } > (I note that on that example expand-word produces a list of files but } > the _expand completer (with substitute and glob styles set to 1) only } > beeps, with or without 9752 applied. Is that the right behavior?) } } No. Seems like the (e) flag makes the thing be quoted as in double } quotes. I.e. with a='${~^arr}*', ${(e)a} gives `[sS] Src/M ../*', but } a='${(@)~^arr}' gives what we would have expected. The patch below } changes the calls to parsestr() to calls to parse_subst_string() to } get that. Hm, should we call that only conditionally, e.g. if the } ${(e)...} is not inquotes and has no (@) or something? My first reaction would be to answer "yes," and a little fooling around with 9757 applied seems to bear it out: a='*' print -l "${(e)a}" Would you really expect to get one file name per line in that case? -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com