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 PAA18081 for ; Sat, 30 Sep 1995 15:22:53 +1000 (EST) Received: from math (math.skiles.gatech.edu) by gatech.edu with SMTP id AA20282 (5.65c/Gatech-10.0-IDA for ); Sat, 30 Sep 1995 01:22:18 -0400 Received: by math (5.x/SMI-SVR4) id AA03857; Sat, 30 Sep 1995 01:15:12 -0400 Resent-Date: Sat, 30 Sep 1995 06:17:42 +0100 (BST) Old-Return-Path: From: Zefram Message-Id: <29062.199509300517@stone.dcs.warwick.ac.uk> Subject: Re: offset calendar days To: mdb@cdc.noaa.gov (Mark Borges) Date: Sat, 30 Sep 1995 06:17:42 +0100 (BST) Cc: zsh-workers@math.gatech.edu (Z Shell workers mailing list) In-Reply-To: <9509300506.AA13575@charney.cdc.noaa.gov> from "Mark Borges" at Sep 29, 95 11:06:40 pm X-Loop: zefram@dcs.warwick.ac.uk X-Stardate: [-31]6366.10 Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-Id: <"TsKDL1.0.By.V9DRm"@math> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/410 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu >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? What's wrong with $((18+(${2:-1}-1)*24)) ? And the line above works for me (2.6-beta11-test7). -zefram