A very basic question that I can't figure out the answer to: in my $HOME/.bashrc
I'm setting up all sorts of stuff including the PATH
environment variable, e.g. via:
export PATH="$PATH:$HOME/bin"
I have now noticed - and I'm not sure if this is only the case after a system upgrade (I'm on Arch) - that after commenting out every line in my .bashrc
when I open another terminal emulator instance (e.g. xterm) PATH
is still set up as if I had not modified my .bashrc
at all. That seems very strange to me as it is definitely the only file on my system containing this particular PATH
setup code. What's happening here?
.profile
aswellecho $SHELL
?~/.bash_profile
,/etc/profile
and/etc/bash.bashrc
. Weirdly enough aliases etc. from my.bashrc
don' take effect in new bash instances, just the path seems to be cached somehow.ssh
. Once logged in, what is the output ofecho $-
? And show us the output ofgrep -H PATH ~/.bashrc ~/.profile ~/.bash_profile ~/bash.login ~/.bash_aliases /etc/bash.bashrc /etc/profile /etc/profile.d/* /etc/environment 2> /dev/null
.