Randall R Schulz wrote:
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
Great : thanx Randall -- Laurent Renard Epicuri@ Websolutions www.epicuria.be <http://epicuria.be> 114, Rue Vandervelde 7033 MONS ( BELGIUM ) TEL/FAX : +32 65 31 77 81 SKYPE : leolargo2004 ------------------------------------------------ Scanned with Clamav Antivirus on Procmail Server This e-mail and any attachment thereto is confidential and are intended for the sole use of the recipient(s) named above. Any use of the information contenaid herein is prohibited. If you have received this e-mail in error, please notify the sender either by telephone or by e-mail and delete the material from any computer. Thank you for your cooperation Ce message electronique, y compris tout document joint, est confidentiel. Si vous n'etes pas le destinataire de ce message, toute divulgation, copie ou utilisation en est interdite. Si vous avez recu ce message par erreur, veuillez le detruire et en informer immediatement l'expediteur. Merci de votre collaboration