From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6137 invoked from network); 5 Nov 1998 01:47:04 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 5 Nov 1998 01:47:04 -0000 Received: (from list@localhost) by math.gatech.edu (8.9.1/8.9.1) id UAA12952; Wed, 4 Nov 1998 20:38:39 -0500 (EST) Resent-Date: Wed, 4 Nov 1998 20:38:39 -0500 (EST) From: Phil Pennock Message-Id: <199811050140.BAA02822@athenaeum.demon.co.uk> Subject: Re: Arithmetic expression (bug?) In-Reply-To: <3640CFA1.B40B6771@uni-hamburg.de> from Bernd Eggink at "Nov 4, 98 11:05:21 pm" To: zsh-workers@math.gatech.edu Date: Thu, 5 Nov 1998 01:40:25 +0000 (GMT) X-Disclaimer-1: Any views expressed in this message, where not explicitly X-Disclaimer-2: attributed otherwise, are mine and mine alone. Such views X-Disclaimer-3: do not necessarily coincide with those of any organisation X-Disclaimer-4: or company with which I am or have been affiliated. X-Phase-of-Moon: The Moon is Waning Gibbous (100% of Full) X-Mailer: ELM [version 2.4ME+ PL37 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-ID: <"heaWc1.0.JA3.V6GGs"@math> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/4546 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Typing away merrily, Bernd Eggink produced the immortal words: > > -----------------------------< 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? Yes. I used ``zsh -f'' and this is 3.1.5, with, as I said, no patches. Extra detail: OS: SuSE Linux (2.0.34+patches kernel) Arch: x86 PC (AMD K6) Configure options: --enable-dynamic Misc: Defaults used for all stages of install, except for enabling modules. Note: I know I'm missing something ... Note that there are two print statements. The first works, the second doesn't. And I know, I probably shouldn't use a 3.1.x as a default shell, but I've come to rely on things like widgets. If for nothing else, then to have an invocation of setfont(8) bound to a func-key to restore sanity after X11 horribly hexes things. And having cdpause(1) bound is one of those things you wonder how you ever did without. I'm on the list now, BTW, so there's no need to CC. But thanks anyway. :^) -- --> Phil Pennock ; GAT d- s+:+ a22 C++(++++) UL++++/I+++/S+++/H+ P++@ L+++ E-@ W(+) N>++ o !K w--- O>+ M V !PS PE Y+ PGP+ t-- 5++ X+ R !tv b++>+++ DI+ D+ G+ e+ h* r y?