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 -- Laurent Renard
* Laurent Renard <lrenard@epicuria.be> [02-26-05 06:59]:
I'm looking to modify my PATH.
understandably
In which file is defined the PATH on Suse 9.2 Pro.
man -a /usr/share/doc/howto/en/txt/Path.gz
I was using fedora Core 3 and the file was "/home/user/.bash_profile"
and you should be able to do the same with SuSE, but there are other options according to the howto. locate howto|grep -i path -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/gallery
Patrick Shanahan wrote:
* Laurent Renard <lrenard@epicuria.be> [02-26-05 06:59]:
I'm looking to modify my PATH.
understandably
In which file is defined the PATH on Suse 9.2 Pro.
man -a /usr/share/doc/howto/en/txt/Path.gz
I was using fedora Core 3 and the file was "/home/user/.bash_profile"
and you should be able to do the same with SuSE, but there are other options according to the howto.
locate howto|grep -i path
SOrry but it can't help ;{ -- Laurent Renard
Laurent, El Sáb 26 Feb 2005 06:57, Laurent Renard escribió:
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"
Look into "/home/user/.bashrc". These are a few commentary lines from my ~/.bashrc: # There are 3 different types of shells in bash: the login shell, normal shell # and interactive shell. Login shells read ~/.profile and interactive shells # read ~/.bashrc; in our setup, /etc/profile sources ~/.bashrc - thus all # settings made here will also take effect in a login shell. Regards, -- Andreas Philipp Noema Ltda. Bogotá, D.C. - Colombia http://www.noemasol.com
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
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
participants (5)
-
Andreas Philipp
-
James Knott
-
Laurent Renard
-
Patrick Shanahan
-
Randall R Schulz