Re: History timestamping does not respect TZ env variable
From:
Julian Mehnle
Subject:
Re: History timestamping does not respect TZ env variable
Date:
Mon, 4 Jul 2005 19:02:15 +0200
User-agent:
KMail/1.7.2
Chet Ramey wrote:
> 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.
> [...]
>
> Do you understand that strftime() performs the equivalent of getenv()
> to discover the value of $TZ? And that bash's table of shell variables
> is different from the list `environ' points to?
Ok, now I understand the issue. Thanks for explaining it to me.
> I'm not really interested in reimplementing the C library. If the
> implementation of strftime() prevents bash from providing it the correct
> value for $TZ, so be it.
I see. Too bad that there's no simple solution.
Julian.