Red Hat Bugzilla – Bug 32478
/etc/zshenv trashes environment
Last modified: 2007-04-18 12:32:17 EDT
The /etc/zshenv file gratuitously screws around with the shell environment.
For all users it gratuitously adds some path components to the end of the
path is not present (in a very inefficient fashion, too).
Worse, if you're root it throws away any PATH setting which may have
been set up. Yea, not only for interactive shells but for all shells.
So even the trivial
This is very very bad. The zshenv file MUST NOT trash the root environment
inherited from the zsh invoker. And it's gratuitous and performance
to muck with the PATH on _every_ zsh start, and inefficient to do it
replace the shipped /etc/zshenv with an empty file
or don't make /etc/zshenv part of the RPM package
Fixed in zsh-4.0.1-0.2pre2, which someday will show up in Rawhide - and for a
limited time at http://people.redhat.com/~teg/