[Nix-dev] bash (no -l) resetting PATH?

Marc Weber marco-oweber at gmx.de
Tue Feb 8 06:40:44 CET 2011


Try this:

PATH=/fooX:$PATH
bash
echo $PATH

/fooX will not appear in $PATH because /etc/bashrc unsets it.
Debian installations don't do it.
So what's the reason for this behaviour?

I know I could set NOSYSBASHRC..

I'd like to do things like 

ruby-env-foo bash # bash should be started with some additional env
vars.

So what's the reason for unsetting PATH?

It looks to me that all the stuff in /etc/bashrc setting env vars should
go into /etc/profile which is sourced on login only ?


Marc Weber



More information about the nix-dev mailing list