From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2245 invoked from network); 4 Nov 1998 22:14:31 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 4 Nov 1998 22:14:31 -0000 Received: (from list@localhost) by math.gatech.edu (8.9.1/8.9.1) id RAA07155; Wed, 4 Nov 1998 17:07:43 -0500 (EST) Resent-Date: Wed, 4 Nov 1998 17:07:43 -0500 (EST) Sender: rz2a022@uni-hamburg.de Message-ID: <3640CFA1.B40B6771@uni-hamburg.de> Date: Wed, 04 Nov 1998 23:05:21 +0100 From: Bernd Eggink Organization: Regionales Rechenzentrum der Uni Hamburg X-Mailer: Mozilla 4.5 [en] (X11; I; Linux 2.0.35 i586) X-Accept-Language: de MIME-Version: 1.0 To: Phil Pennock CC: zsh-workers@math.gatech.edu Subject: Re: Arithmetic expression (bug?) References: <199811042134.VAA01156@athenaeum.demon.co.uk> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Resent-Message-ID: <"2nNOu.0.hl1.l0DGs"@math> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/4544 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Phil Pennock wrote: > > Okay, is a base-ten number, in the right context, an arithmetic > expression? The manual-page bit dealing with Arithmetic Evaluation > (zshmisc(1)) doesn't explicitly say so, but it seems obvious that it > should. > > So, given this: > -----------------------------< cut here >------------------------------- > foo=alpha > print -- ${(l<$[10]>)foo} > print -- ${(l<10>)foo} > -----------------------------< cut here >------------------------------- > why does the third line produce: > ./testfile: error in flags [3] > ? I can't reproduce this. For me it works perfectly. I get the expected xxxxxalpha Hm, are you sure the right shell is started with your script? Bernd -- Bernd Eggink Regionales Rechenzentrum der Uni Hamburg eggink@uni-hamburg.de http://www.rrz.uni-hamburg.de/eggink/BEggink.html