Shell config files?
So: what's the difference between a login shell and and interactive shell? I mean, why? Why .bashrc and .bash_profile?
I'd like to write a common set of the two config files above that I can share between my Linux box and my Mac running OS X. This is going to be hard enough without understanding the reasons for this stuff.
I've tried reading the man pages, and things, but I can't seem to get my head around the current and historical purposes of separating these files. So if someone could "go slow" with it for me, I'd really appreciate it.
Thank you!
[EDIT: I've just found this in my /etc/profile on OS X 10.4:
Okay, so this last isn't exactly
linux material. But it's bash, and I'm not even going to ask in the LJ Macintosh communities.
I'd like to write a common set of the two config files above that I can share between my Linux box and my Mac running OS X. This is going to be hard enough without understanding the reasons for this stuff.
I've tried reading the man pages, and things, but I can't seem to get my head around the current and historical purposes of separating these files. So if someone could "go slow" with it for me, I'd really appreciate it.
Thank you!
[EDIT: I've just found this in my /etc/profile on OS X 10.4:
if [ "${BASH-no}" != "no" ]; then
[ -r /etc/bashrc ] && . /etc/bashrc
fiAny ideas on whether this is the same as testing for PS1? I seem to recall that OS X 10.3 had a bug in this regard, and anyway, I can't Google for "BASH-no".Okay, so this last isn't exactly
linux material. But it's bash, and I'm not even going to ask in the LJ Macintosh communities.[EDIT 2: Nope, it doesn't, nevermind. OS X still insists on making shells opened by scp interactive. Any help figuring out a way around this problem would be appreciated, though I'm not willing to fundamentally change OS X's sshd setup]]