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

Possible Bug / strange behaviour / Version 3.0.2 Solaris 2.4



As this does NOT happen under LINUX and NOT under SunOS
it might be something spuriously depending on the OS and on the
ZSH-Version but we found it extremely strange:

In Solaris 2.4 (compiled with gcc 2.7.2) the zsh 3.0.2
switches the time depending on 'how the TZ-variable was created'

- If exported directly, or exported and a command follows
  the shown value of '%*' changes.
- If just set, or 'exported by just exporting the variable and no command
  on the line' the time stays correct!

Any ideas?   Here are the things we tried:

$ unset TZ; : no variable                                    (0)13:23:00
$ date                                                       (0)13:23:27
Donnerstag, 24. Juli 1997, 13:23:31 Uhr MET DST
$ export TZ=CET-1CEST-2; : oops                              (0)13:23:31
$ TZ=CET-1CEST-2,M3.5.0/02:00:00,M10.5.0/03:00:00
$ date; : TZ generated by export                             (0)12:24:10
Donnerstag, 24. Juli 1997, 13:24:53 Uhr CEST
$ unset TZ; : no variable                                    (0)12:24:53
$ TZ=CET-1CEST-2,M3.5.0/02:00:00,M10.5.0/03:00:00
$ export TZ; : other way round                               (0)13:25:06
$ date; : TZ generated locally                               (0)12:25:34
Donnerstag, 24. Juli 1997, 13:25:39 Uhr CEST
$ unset TZ; : no variable                                    (0)12:25:39
$ export TZ                                                  (0)13:26:01
$ date; : TZ locally, OOPS \?                                (0)13:26:08
Donnerstag, 24. Juli 1997, 13:26:32 Uhr MET DST
$ export TZ; : another command                               (0)13:26:32
$ date; : still ok                                           (0)13:26:58
Donnerstag, 24. Juli 1997, 13:27:09 Uhr MET DST
$ unset TZ; : no variable                                    (0)13:27:10
$ export TZ; : another command                               (0)13:27:16
$ TZ=CET-1CEST-2,M3.5.0/02:00:00,M10.5.0/03:00:00
$ date; : OOPS !!!                                           (0)12:27:27
Donnerstag, 24. Juli 1997, 13:27:44 Uhr CEST
$

Stucki

Christoph von Stuckrad       * *  | talk to  | <stucki@xxxxxxxxxxxxxxxxx> \
Freie Universitaet Berlin    |/_* | nickname | ...!unido!fub!leibniz!stucki|
Fachbereich Mathematik, EDV  |\ * | 'stucki' | Tel:+49 30 838-7545{9|8}    |
Arnimallee 2-6/14195 Berlin  * *  |  on IRC  | Fax:+49 30 838-5913        /




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