On Fri, 2005-11-11 at 13:26 +1000, David Lockwood wrote: > But /bin/sh is just a symlink to /bin/bash, the same binary runs. I > didn't think of this straight away because I knew bash was the only > shell I had installed, and I thought from my reading that "bash + > login = ~/.bash_profile gets read"
Same binary, but a program can tell what name it's invoked by and alter it's behaviour accordingly. In the case of bash, invoking it as 'sh' causes it to run in a compatibility mode for classic Bourne shell, so it won't be running bash-specific login scripts. Simon.
signature.asc
Description: This is a digitally signed message part
-- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page