Re: History timestamping does not respect TZ env variable
From:
Chet Ramey
Subject:
Re: History timestamping does not respect TZ env variable
Date:
Tue, 21 Jun 2005 21:36:38 -0400
User-agent:
Mozilla Thunderbird 1.0.2 (Macintosh/20050317)
Julian Mehnle wrote:
> Description:
> The history timestamping feature of Bash 3.0 does not respect the TZ
> (timezone) environment variable. It erroneously always uses the system
> clock's configured timezone.
Since it calls strftime(3) to do the formatting, it uses whatever
strftime uses. There is the usual problem of exported shell
variables finding their way into the environment searched by the
C library functions. This is why bash attempts to provide a
replacement for getenv().
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
Live...Laugh...Love
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/