https://bugzilla.novell.com/show_bug.cgi?id=244788 suse@tlinx.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|suse@tlinx.org | ------- Comment #7 from suse@tlinx.org 2007-02-22 20:24 MST ------- /etc/bash.bashrc is a build-time option in bash but is not documented in the manpages. Now the sequence is more clear /etc/bash.bashrc calls /etc/profile calls /etc/bash.bashrc (nested; which realizes it's in a nested call 95% the way through, when it doesn't call profile again) profile calls users HOME/.bashrc then bash calls users ~/.bashrc for non-interactive session So in non-interactive sessions, a users home-.bashrc is called twice -- that's seems to be the problem here in this situation. Perhaps .profile should check if it is NOT in an interactive session, then don't call ".bashrc" because bash calls it by default. There is also alot of wasted code in bash.bashrc -- it defines aliases for non-interactive sessions. Unless "shopt expand_aliases" is set to true (defaults to off), aliases are not expanded in non-interactive shells. There is also a bunch of code to set the prompt for non-interactive prompts. Why? The minimum that needs to be fixed is ".profile" being responsible for calling bashrc "twice". But having nested recursive calls that don't determine "nestedness" until 95% through is awfully inefficient. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.