Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Arithmetic expression (bug?)
- X-seq: zsh-workers 4544
- From: Bernd Eggink <eggink@xxxxxxxxxxxxxx>
- To: Phil Pennock <phil@xxxxxxxxxxxxxxxxxxxxx>
- Subject: Re: Arithmetic expression (bug?)
- Date: Wed, 04 Nov 1998 23:05:21 +0100
- Cc: zsh-workers@xxxxxxxxxxxxxxx
- Organization: Regionales Rechenzentrum der Uni Hamburg
- References: <199811042134.VAA01156@xxxxxxxxxxxxxxxxxxxxx>
- Sender: rz2a022@xxxxxxxxxxxxxx
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]><x>)foo}
> print -- ${(l<10><x>)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@xxxxxxxxxxxxxx
http://www.rrz.uni-hamburg.de/eggink/BEggink.html
Messages sorted by:
Reverse Date,
Date,
Thread,
Author