Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Arithmetic expression (bug?)



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