I did a "make install" on the Bash-2.03 port (my first port install).
The make went smoothly and I followed the advice on adding bash to my
shells database. I also used chpass -s to change the default shell for
both my account and root. My problem is that the ../sbin directories are
no longer in my path so I now have to fully specify commands like ping
and halt. Using env confirms that my PATH variable does not contain
these directories. I have checked the bash man pages and FAQ.
According to the man page:
"When Bash is invoked as an interactive login shell, it first reads and
executes commands from the file `/etc/profile', if that file exists.
After reading that file, it looks for
`~/.bash_profile', `~/.bash_login', and `~/.profile', in that order, and
reads and executes commands from the first one that exists and is
readable. The `--noprofile'
option may be used when the shell is started to inhibit this behavior. "
My OpenBSD 2.5 install doesn't have /etc/profile (or ~/.bash_profile',
`~/.bash_login' of course) and the ~/.profile files PATH reference
don't have the sbin directories in them. Where does sh find them? How
should I configure bash to set PATH properly? Any other tweaks I need to
get bash integrated properly?
Thanks
Jim Campbell
--