From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gatech.edu (gatech.edu [130.207.244.244]) by werple.net.au (8.7/8.7) with SMTP id BAA04290 for ; Sun, 1 Oct 1995 01:42:40 +1000 (EST) Received: from math (math.skiles.gatech.edu) by gatech.edu with SMTP id AA26837 (5.65c/Gatech-10.0-IDA for ); Sat, 30 Sep 1995 11:45:39 -0400 Received: by math (5.x/SMI-SVR4) id AA05885; Sat, 30 Sep 1995 11:39:04 -0400 Resent-Date: Sat, 30 Sep 1995 09:41:38 -0600 Old-Return-Path: Date: Sat, 30 Sep 1995 09:41:38 -0600 Message-Id: <9509301541.AA22947@bjerknes.cdc.noaa.gov> From: Mark Borges To: A.Main@dcs.warwick.ac.uk Cc: ZSH mailing list Subject: Re: offset calendar days In-Reply-To: <29062.199509300517@stone.dcs.warwick.ac.uk> References: <9509300506.AA13575@charney.cdc.noaa.gov> <29062.199509300517@stone.dcs.warwick.ac.uk> Organization: CIRES, University of Colorado X-Attribution: mb Resent-Message-Id: <"soSZs1.0.tR1.OIMRm"@math> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/411 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu >> Zefram (Z) wrote on Sat, 30 Sep 1995 06:17:42 +0100 (BST): >> charney$ echo $ZSH_VERSION >> 2.6-beta10-hzoli10.2 >> charney$ TZ=GMT-$((18+$((${2:-1}-1))*24)) date +%j >> zsh: ')' expected >> If not a bug, is there an alternate syntax I can use in zsh? Z> What's wrong with $((18+(${2:-1}-1)*24)) ? Err, nothing, it should work too but it doesn't: $ TZ=GMT-$((18+(${2:-1}-1)*24)) date +%j zsh: ')' expected Z> And the line above works for me (2.6-beta11-test7). Yes, you're right. It works in 2.6-b10 as well, so I presume the bug is restricted to the hzoli releases (though I've only verified up to hzoli10.2). I should have checked this prior to my original post to the list. Thanks for the info. -mb-