On Saturday 26 February 2005 12:16, James Knott wrote:
Laurent Renard wrote:
Hello,
I'm looking to modify my PATH.
In which file is defined the PATH on Suse 9.2 Pro.
I was using fedora Core 3 and the file was "/home/user/.bash_profile"
Thank's
Add any changes to ~/.bashrc.
That will work, but it can readily have unintended side-effects. Often they're not intolerable or even really a problem, but thing to keep in mind is that .bashrc is read (unless suppressed, say, by the "--norc" option) every time BASH starts up as such (i.e., not in Korn shell emulation mode, in which case it will use ~/.bashrc). So consider if you do something like this in .basrc: PATH="$PATH:/more/path:/even/more/path" Now, when there's a nested series of script invocations, something that's far from rare, the PATH variable keeps growing and growing with each nested BASH invocation. In fact, the whole ~/.login, ~/.bash_profile ~/.bashrc scheme is not distribution-specific, it's a BASH thing, so what Laurent was doing on Fedora Core should work just as well on SuSE. Randall Schulz