From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from euclid.skiles.gatech.edu (list@euclid.skiles.gatech.edu [130.207.146.50]) by melb.werple.net.au (8.7.5/8.7.3/2) with ESMTP id WAA18829 for ; Fri, 26 Jul 1996 22:09:16 +1000 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id IAA05093; Fri, 26 Jul 1996 08:01:40 -0400 (EDT) Resent-Date: Fri, 26 Jul 1996 08:01:40 -0400 (EDT) From: Zoltan Hidvegi Message-Id: <199607261200.OAA04221@bolyai.cs.elte.hu> Subject: Re: bug, limitation, ...? To: pws@ifh.de (Peter Stephenson) Date: Fri, 26 Jul 1996 14:00:50 +0200 (MET DST) Cc: zsh-workers@math.gatech.edu In-Reply-To: <199607260844.KAA19446@hydra.ifh.de> from Peter Stephenson at "Jul 26, 96 10:44:05 am" Organization: Dept. of Comp. Sci., Eotvos University, Budapest, Hungary Phone: (36 1)2669833 ext: 2667, home phone: (36 1) 2752368 X-Mailer: ELM [version 2.4ME+ PL16 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-ID: <"hGR7g.0.VF1.ZEB-n"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/1781 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu > Somebody was complaining to me on the S-Bahn yesterday evening that he > couldn't do: > > % set foo > % print ${1[0]} > zsh: closing brace expected > > (I think this question has cropped up before, in fact, but that was > long before Zoltan's parameter substitution improvements.) It would > be nice if numerical parameters were as much like `other' scalar > parameters as possible. (OK, they're really array elements, but the > mode of addressing suggests that should be hidden from the user; after > all, direct assignment works.) Still, the world is not a nice place. > If it turns out a change would be tantamount to allowing ${argv[0][0]} > it's probably too much, at least for now. Well, I have already fixed this, and in fact ${argv[0][0]} will work in pre4, and more: "${${(M)${(f@)$(