https://bugzilla.novell.com/show_bug.cgi?id=244788 ------- Comment #6 from suse@tlinx.org 2007-02-21 17:49 MST ------- Hmmm...looking over this I haven't come to a conclusion of the correct choice. Something that is not clear to me -- where is "/etc/bash.bashrc" getting called from, anyway? It doesn't seem to be referenced as being called by ssh[d] or bash. It doesn't seem to have pointed ENV or BASH_ENV at "itself"... Is intended to be a "~/.bashrc" parallel that is called every time a new shell is started? I note you use "SSH_CLIENT". It isn't documented either. In looking through the openssh source I see the variable used, but marked "deprecated". I think you may want to replace its usage with "SSH_CONNECTION". But at this point -- the reason my vars are called twice is that my ".bashrc" calls my global "vars.sh". /etc/bash.bashrc calls profile-> profile.local->my vars.sh (indirectly). Before telling you one way or another -- I wanted to verify whatever I said would work! :-) But what's confusing me a bit is where and when /etc/bash.bashrc is called and if it is called before or after my local .bashrc. For users to set their environment, there already exist special "rc" files both system and user level) to allow them to set or call a variable setup. I'm not sure of backward compatibility impact, but that wasn't one of your listed concerns. But maybe you would want to provide a system-level sshrc file that would call a common-variable set routine. I resist it calling "/etc/profile", as that should be reserved for calling an interactive login session, IMO. So...called from where? How? /etc/bash.bashrc? I'm not seeing why it is even getting called at all (i.e. what program is calling it). If it is not meant to be invoked with every bash shell, is it only used or called by ssh? -- 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.