Red Hat Bugzilla – Bug 244684
zsh dosnt source /etc/profile.d
Last modified: 2007-11-30 17:12:07 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:220.127.116.11) Gecko/20070223 Firefox/18.104.22.168
Description of problem:
In a graphical session, when i start a terminal (xterm, kconsole, urxvt) the zsh runing inside (non-login interactive) dosnt have the aliases declared in /etc/profile.d
this is because in /etc/zshrc, to prevent these scripts to be sourced two times (/etc/zprofile is readed before if its a login shell), the source command is inside an IF, that checks x$SHLVL != x1 .
the correct way to check if its not a login shell is using [[ ! -o login ]] (as stated in the zsh users guide)
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. run a terminal
2. execute the command alias "ll"
zsh: command not found: ll
ls -l (as defined in an alias in /etc/profile.d/colorls.sh)
I confirm the bug, and the solution. On Fedora 7.
I'm increasing the severity because actually it's very annoying.
Should be fixed in just built zsh-4.3.4-4.fc8