Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

print builtin preceded by parameter assignment



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