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

Re: offset calendar days



>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