Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: offset calendar days
- X-seq: zsh-workers 410
- From: Zefram <A.Main@xxxxxxxxxxxxxxxxx>
- To: mdb@xxxxxxxxxxxx (Mark Borges)
- Subject: Re: offset calendar days
- Date: Sat, 30 Sep 1995 06:17:42 +0100 (BST)
- Cc: zsh-workers@xxxxxxxxxxxxxxx (Z Shell workers mailing list)
- In-reply-to: <9509300506.AA13575@xxxxxxxxxxxxxxxxxxxx> from "Mark Borges" at Sep 29, 95 11:06:40 pm
>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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author