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

Re: offset calendar days



>> Zoltan Hidvegi(ZH) wrote on Fri, 29 Sep 1995 22:53:09 +0100 (MET):

ZH> As I know, if there is a +/- number in the TZ, it is taken as an
ZH> offset to GMT and the leading part of the variable is ignored.
ZH> E.g. FOO-1 is the same as GMT-1.

Yes, you are exactly right. Thanks!

Unfortunately, in playing with this I think I discoverd a small bug
(or at least ksh incompatability) in zsh:

------------------------------------------------------------------------------
charney$ ksh
$ TZ=GMT-$((18+$((${2:-1}-1))*24)) date +%j
273
$ ^D
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?

  -mb-



Messages sorted by: Reverse Date, Date, Thread, Author