Re: adding to PATH
I believe /etc/profile IS the place where the system-wide default PATH is
defined. Are you sure it isn't being changed somewhere in .bashrc or
.bash_profile?
anyway, to add to it, you'd do this:
PATH=$PATH:/usr/local/java/bin
-Brad
On 25 Apr 1999, Arcady Genkin wrote:
> I'm having a problem adding to a system-wide PATH variable... I've
> added the following in /etc/profile:
> PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/local/java/bin"
>
> However, "echo $PATH" produces:
>
> ./:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin:/usr/local/bin
>
> My ~/.bashrc and ~/bash_profile do not contain anything to do with
> PATH variable. SO where is the system-wide PATH specified?
>
> Also, how do I dynamically add to the PATH variable in bash?
>
> Thanks!
>
> --
> Arcady Genkin
> "I opened up my wallet, and it's full of blood..." - GsYDE
>
>
> --
> Unsubscribe? mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
>
Reply to: