RE: Setting PATH

Mon, 19 Apr 1999 09:10:38 +0200

OK, my apologies, i answered without enough thinking:
the PATH should be set in profile or .profile or .bash_profile because it
will be initialized only once (login) and will be kept through all jobs
as it is exported (export PATH).
if it is defined in bashrc or .bashrc, and it is just appending things
(PATH=$PATH:/my/new/dir) then this new directory wil be appended to the
PATH variable several times (each time a bash is launched it will get the
PATH from its father and append the new dir to it).

so bashrc should be used to put aliases
PATH should be defined once in profile during login process.


-----Original Message-----
From: michael jones []
Sent: Friday, April 16, 1999 9:29 PM
Cc: LENGARD Pascal OCISI; Linux Newbie; Shane McKeown; Linux
Subject: Re: Setting PATH wrote:

> LENGARD Pascal OCISI dixit:
> ~> the PATH should be set in /etc/bashrc for system wide definition and
> ~> ~/.bashrc for single user definition.
> Actually, /etc/profile is for system wide definition, while
> for the login shell, and ~/.bashrc is for an interactive shell.
There's no
> /etc/bashrc on my system (Debian 2.0).

yeah Debian must be different,
in Red Hat there is a /etc/bashrc. it is for system wide, the ~/.bashrc
is for
user define. i use the /etc/bashrc for alias definitions and the
for the PATH. i don't know why, someone told me to do it that way in
Red Hat and it works. if i am wrong i would like to know.

> Regards
> Horacio
> --
> Claves - GnuPG/PGP - Keys :
> o/or
> Envía un mensaje vacío a con la línea de asunto:
> Send a blank message to with the subject line:
> Tipo de Clave/Key Type Asunto:/Subject:
> DSA/ElGamal fetch dsa/elgamal
> DSS/Diffie-Hellman fetch dh/dss
> RSA fetch rsa

michael jones * erleichda archiving * usa
this space for rent.

To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to