Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: print builtin preceded by parameter assignment
- X-seq: zsh-users 23938
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: print builtin preceded by parameter assignment
- Date: Thu, 25 Apr 2019 12:47:46 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=KyTI4y9zSGeDEHnpLzd+v0F50x/UgalqOYOzXGVjAaA=; b=JOOyir81VvVmJ8gSpU+Ic9VzwMoJcodSvhuG6PGX6B74RNxmhHHorqgMt5VSoaxzG7 RnBJCJhludm8/rDIkveWOOVsdhekjlbIeoa50UJw1xZxlInb8G5e9CE4nNNZ7V7/tqPC nFA+oY/NTrKVdyaUhemr4y3auKiZ4F73owZodNrf+1Wc379JyMpDe6yeuumaCnMZRzgR tZ7hz02G/tFxnz7M/gHvcgbAj+Exp7bEX64aUjrpFCJpzoSUAbFUmANYendBzwgD+3Oe jU3Q3XAyC+QGotZIJ51gnrdAqUmyQSy0b6JEzznifutqmg7CxibfWDitMPmm2myxTD4f x9Tg==
- In-reply-to: <CAH+w=7bpPRr3u=JA3QpAD9K=q7vcDUtz-rEEvz9OcLHpzmyzkQ@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CGME20190410125753epcas1p4052249a86c562165e1fe2a485d70e70b@epcas1p4.samsung.com> <20190410125557.GA19114@cventin.lip.ens-lyon.fr> <1554902053.6252.6.camel@samsung.com> <20190410141113.GD15169@cventin.lip.ens-lyon.fr> <1554907186.6252.12.camel@samsung.com> <CAH+w=7bc6oTLWfa5RiNtwdX5ZjT+wi6A3Vb3mxmRc9b8fQH-1A@mail.gmail.com> <20190411104040.GA29775@cventin.lip.ens-lyon.fr> <CAH+w=7a7WfCX7nRRN7rOk8ZMpOSRV5Tt0a9CHtYJhikhffrmLg@mail.gmail.com> <CAH+w=7ZwbhcxGUM1eeu8jY3d12toFTgbCfvYPEdHhUkdtdWcuA@mail.gmail.com> <20190424123144.GA21402@zira.vinc17.org> <CAH+w=7bpPRr3u=JA3QpAD9K=q7vcDUtz-rEEvz9OcLHpzmyzkQ@mail.gmail.com>
On Wed, Apr 24, 2019 at 9:00 AM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> This is not related (and is not actually the case). TZ does not
> remain exported. What remains is that the settz() call has changed
> the current timezone of the zsh process to be something that differs
> from the value of the TZ environment variable.
>
> difference with LC_ALL is that it is recognized as semantically
> meaningful to the shell, so it has special code to invoke setlocale()
> whenever it changes. TZ is not specially handled in the same way.
If we want to simultaneously fix the former bug and also begin
handling TZ the way Vincent expects, we would have to introduce
get/set functions for TZ analogous to those for LC_*, so that settz()
is invoked on TZ value change the same way setlocale() is on LC_*
changes. Further we would have to examine uses elsewhere of settz()
and localtime() [most notably in prompts and zsh/datetime] to be sure
that those either aren't needed, or that they correctly save/restore
the timezone if forcing one that differs from $TZ (or from the orginal
starting timezone when TZ is not set).
Messages sorted by:
Reverse Date,
Date,
Thread,
Author