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 #2 from suse@tlinx.org 2007-02-14 20:29 MST ------- Reasons for "fixing" this. 1) bash manpage documents taht "/etc/profile" is only called by interactive login shells ; the standard behavior of bash is broken 2) bash manpage says "bashrc" is called on "interactive sessions" that _are not login sessions_ I'm using the fact that profile is called for interactive login and not during a non-login session to do one-time, login-only initializations AND that bashrc is called _instead_ profile to do "within-same-login-session" special handling that I don't want done if it is not a new login session. This is all documented behavior in the bash man page. My same scripts work across IRIX, Suse 9.x,Suse 10.x and Windows(cygwin) (and prevously, Solaris). These all work without specific checks to OS names or versions. The SuSE 10.x change makes the behavior incompatible with IRIX, POSIX(cygwin), previous versions of SuSE and most likely Solaris (can't check it right now). I'd already setup modular files to allow setting: - one-time login variables & accounting - per-invok variables, common bash code and aliases I'd also have gone to some lengths to make sure I use minimal non-builtins and utils that might cause delays or generate errors if called in the wrong execution path. As to why some things are called twice -- both "profile and bashrc" call a "common" file in addition to their specific initializations. Also, there are login things done once/login session, but not called during non-interactive "logins". The problem this new change has created is that profile gets called during non-interactive logins which goes against bash's documented behavior. -- 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.