From Bugzilla Helper: User-Agent: Mozilla/5.0 Galeon/1.2.5 (X11; Linux i686; U;) Gecko/0 Description of problem: Most of the *.sh scripts in /etc/profile.d are bash only unnesscarily. zsh could take advantage of the aliases that bash does for things like color ls and color vi. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. rpm -i zsh-4.0.4-5.i386.rpm 2. chsh -s zsh user 3. login as user 4. ls Actual Results: ls output isn't colorized. Expected Results: ls output to be colorized. Additional info:
it's colorized for me, and zsh does source the .sh files in the above directory (the zsh init files sources the bash ones)
At least in my copies of the files there are checks to see if it is bash. /etc/profile.d/colorls.sh if echo $SHELL |grep bash 2>&1 >/dev/null; then # aliases are bash only /etc/profile.d/vim.sh if echo $SHELL |grep bash 2>&1 >/dev/null; then # aliases are bash only
This is using zsh-4.0.4-5 that comes with RedHat 7.3
/etc/profile.d/colorls.sh is owned by fileutils-4.1-10 /etc/profile.d/vim.sh is owned by vim-enhanced-6.1-2
I still get them with a test account. If you find bugs with other packages wrt. zsh, please file it against those components (as the zsh owner, you can put me on the cc list).