Yeah, all startprefix does is reset $SHELL and run
The problem is that the prefixed bash is not reading the prefixed etc/profile. Everything is fine if I source it myself, but I'd like to automate the process without modifying my ~/.bashrc or ~/.profile so that I can get into the default (non-Gentoo) environment easily without sourcing the prefixed profile.
This means that I need a command to launch the prefixed bash, followed by a source of the prefixed etc/profile and my ~/.bashrc. The other option is to add a source ~/.bashrc to the prefixed etc/profile and use the --init-file option.
My question still stands though, why doesn't the prefixed bash source the prefixed etc/profile. I've even tried compiling it myself with
Code: Select all
./configure --prefix=/Users/wilson/Library/Gentoo --sysconfdir=/Users/wilson/Library/Gentoo/etc
but it still just sources /etc/profile. The configure script has this to say about the --sysconfdir option
Code: Select all
$ ./configure --help|grep sysconf
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]