bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: History timestamping does not respect TZ env variable


From: Chet Ramey
Subject: Re: History timestamping does not respect TZ env variable
Date: Mon, 04 Jul 2005 13:59:07 -0400
User-agent: Mozilla Thunderbird 1.0.2 (Macintosh/20050317)

Julian Mehnle wrote:
> 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 am considering manipulating the `environ' variable when bash's list
of exported variables changes.  That might be enough to make the libc
getenv() work.  I'm not sure what effect that might have on private
copies of environ, though.  It will have to be uncovered in testing.

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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]