Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
print builtin preceded by parameter assignment
- X-seq: zsh-users 23921
- From: Vincent Lefevre <vincent@xxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: print builtin preceded by parameter assignment
- Date: Wed, 10 Apr 2019 14:55:57 +0200
- 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>
- Mail-followup-to: zsh-users@xxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
It seems that the print builtin doesn't take into account a change
of the environment with a parameter assignment. For instance:
cventin% zsh -c 'TZ=UTC print -P "%D{%c}"'
2019-04-10T14:53:50 CEST
cventin% zsh -c 'export TZ=UTC; print -P "%D{%c}"'
2019-04-10T12:53:53 UTC
Is there any (undocumented?) reason or is this a bug?
I'm using zsh 5.7.1 under Debian unstable.
--
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author