Quote:
Originally Posted by hilljockey
I've added a path line to /root/.bashsrc
|
You shouldn't do this, in general.
The path modification should be done in .bash_profile
Otherwise, every script that you run from bash (this is a bash feature only, it doesn't care about the #!/bin/sh line) will inherit this property, maybe twice.
Basic example is PATH=/some/dir:$PATH in .bashrc.
If a script spawn 3 children then the path will become /some/dir:/some/dir:/some/dir:$PATH.
Also there should be no EXPORT command in .bashrc.