From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20492 invoked from network); 29 Jul 1997 08:02:45 -0000 Received: from euclid.skiles.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 29 Jul 1997 08:02:45 -0000 Received: (from list@localhost) by euclid.skiles.gatech.edu (8.8.5/8.8.5) id DAA14888; Tue, 29 Jul 1997 03:47:06 -0400 (EDT) Resent-Date: Tue, 29 Jul 1997 03:47:06 -0400 (EDT) To: zsh-workers@math.gatech.edu Path: mason From: mason@primenet.com.au (Geoff Wing) Newsgroups: lists.zsh.workers Subject: Re: RC_EXPAND_PARAM bug Date: 29 Jul 1997 07:47:07 GMT Organization: PrimeNet Message-ID: References: <970728092639.ZM12131@candle.brasslantern.com> from Bart Schaefer at "Jul 28, 97 09:26:39 am" <199707290604.CAA02191@hzoli.home> Reply-To: mason@primenet.com.au NNTP-Posting-Host: ns1.primenet.com.au X-Newsreader: slrn (0.9.4.1 UNIX) Resent-Message-ID: <"4rHds2.0.Ze3.w_Ptp"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/3385 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Zoltan Hidvegi typed: :Bart Schaefer wrote: :> On Jul 28, 2:42pm, Andrew Main wrote: :> } % a=(a b) :> } % x=(x y) :> } % echo ${^a}1${^x} :> } a1y b1x b1y :> It gets weirder: :> :> % echo 1${^a}1${^^x} :> 1ay 1b1x 1by :Below is a fix. The second expansion might still look a bit weird: :% echo 1${^a}1${^^x} :1a1x 1ay 1b1x 1by : :The logic is that the string after the rc-param, 1${^^x}, is expanded, :producing two strings, 1x y, which is combined with 1a 1b. It is true I don't get this, shouldn't 1${^^x} produce one string "1x y"? And then the expansion of 1${^a}1${^^x} be the string "1a1x y 1b1x y"? Your logic indicates to me that it's producing array like thingies. Is this dependant on some other wierd option? Please explain before I go mental. -- Geoff Wing [mason@primenet.com.au] Phone : +61-3-9818 2977 Technical Manager: PrimeNet Computer Consultants Facsimile: +61-3-9819 3788 Web: Mobile : 0412 162 441