Bugzilla – Bug 155970
ksh executes /etc/bash.bashrc three times on login
Last modified: 2006-03-13 11:44:35 UTC
Code in /etc/profile doesn't handle ksh startup files correctly. /etc/bash.bashrc is executed three times by ksh login shells, and twice by other shells. $HOME/.kshrc isn't executed at all. ksh will apparently run /etc/ksh.kshrc and $HOME/.kshrc at startup for every shell, so it was redundant for /etc/profile to run these files explicitly. I've attempted to fix this with the attached patch.
Created attachment 71675 [details] Patch for /etc/profile
Werner: probably your area ...
fixed