Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: offset calendar days
- X-seq: zsh-workers 409
- From: Mark Borges <mdb@xxxxxxxxxxxx>
- To: hzoli@xxxxxxxxxx
- Subject: Re: offset calendar days
- Date: Fri, 29 Sep 1995 23:06:40 -0600
- Cc: ZSH mailing list <zsh-workers@xxxxxxxxxxxxxxx>
- In-reply-to: <9509292153.AA15311@xxxxxxxxxxxxx>
- Organization: CIRES, University of Colorado
- References: <9509292108.AA02931@xxxxxxxxxxxxxxxxxxxx> <9509292153.AA15311@xxxxxxxxxxxxx>
>> 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