[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: History timestamping does not respect TZ env variable
From: |
Julian Mehnle |
Subject: |
Re: History timestamping does not respect TZ env variable |
Date: |
Thu, 23 Jun 2005 11:16:56 +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.
>
> 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().
I'm not sure I understand entirely what this means. Do you mean that the
undesired behavior described by me above is being acknowledged as a
deficiency of Bash? Can it be fixed without great efforts?
Julian.
pgp6UL8C6nj1X.pgp
Description: PGP signature