At work I recently installed linux on my main workstation (sweet machine, but that's another topic). The shell defined in my NIS password map is /usr/bin/sh, which doesn't exist by default on my distribution. Changing my NIS password map is not an option, I support far too many systems, both HP-UX and Solaris for this to work. What I have done as a workaround is symlinked /bin/bash as /usr/bin/sh to allow me to login to my box. The problem is, when I do this, it does not seem to read ~/.bashrc, so my tab completion is broken, and DIRCOLORS are not set when I list directories.
My question is: why, when I am calling bash from a /usr/bin/sh symlink, do these functions break, yet when I manually call bash, they work? How do I get bash to read .bashrc when I am referring to it as the /usr/bin/sh symlink?
My question is: why, when I am calling bash from a /usr/bin/sh symlink, do these functions break, yet when I manually call bash, they work? How do I get bash to read .bashrc when I am referring to it as the /usr/bin/sh symlink?