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

date bug in zsh 3.0.5



Hello,

The %W prompt variable does not seem to work correctly in zsh 3.0.5

We are running solaris 2.6 and have zsh 3.0.5.
Setting your prompt to %W, and then setting the date to after 1/1/2000 gives
incorrect output. eg:

Sun Microsystems Inc.   SunOS 5.6       Generic August 1997
[1] bousfipd@xxxxxxxxxxxxxxxx:/ % sudo date 123123591999
Password:
Friday December 31 23:59:00 WST 1999
[2] bousfipd@xxxxxxxxxxxxxxxx:/ % date
Friday December 31 23:59:03 WST 1999
[3] bousfipd@xxxxxxxxxxxxxxxx:/ % export prompt=%W
12/31/99date
Friday December 31 23:59:12 WST 1999
12/31/99date
Saturday January  1 00:00:04 WST 2000
01/01/:0


The century is display as :0 not 00!

Thankyou for your time.

peter bousfield



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