From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 186 invoked from network); 31 Aug 1999 17:49:27 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 31 Aug 1999 17:49:27 -0000 Received: (qmail 2577 invoked by alias); 31 Aug 1999 17:49:18 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7585 Received: (qmail 2569 invoked from network); 31 Aug 1999 17:49:16 -0000 From: "Bart Schaefer" Message-Id: <990831174752.ZM17088@candle.brasslantern.com> Date: Tue, 31 Aug 1999 17:47:52 +0000 In-Reply-To: <199908310850.KAA27246@beta.informatik.hu-berlin.de> Comments: In reply to Sven Wischnowsky "Re: PATCH: new parameter expansion type?" (Aug 31, 10:50am) References: <199908310850.KAA27246@beta.informatik.hu-berlin.de> X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.auc.dk Subject: Re: PATCH: new parameter expansion type? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Aug 31, 10:50am, Sven Wischnowsky wrote: } Subject: Re: PATCH: new parameter expansion type? } } > This is essentially the same problem as ${(A)foo:=string} where it would } > be nice to be able to have "string" be interpreted as an array. I pointed } > out the parsing problem with this back at that time. It would be nice to } > have a solution; Andrej suggested ${(A)foo:=(val1 val2 ...)} but it will } > require a change to the parser to make that work. } } Or we could add a flag that says that the string is to be split into } different words and change `dquote_parse()' to allow us to say that } the `endchar' is any white-space (or any seperator character). I don't think that will work ... you have to split the string into words long before you get into paramsubst() or you can't be guaranteed to get it right. It has to be a top-level syntax thing, not a parameter flag. But maybe "a flag" isn't really what you meant ... } I would have suggested using the forms with a double character (as in } `${(A)arr:==a b c}') if that weren't too incompatible. That means to assign the full path of the command named "a b c" to the array. You can't get away with overloading `=' any more than it already is, I'm afraid. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com