When Richard Harran wrote, I replied:
To be safe, it's best to set your path on an early line in the file:
PATH=whatever:something:else
and later (perhaps the next line) export the variable(s):
export PATH HOME ...
This is so other shells which don't allow export and set variable on the
same
line
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 addi
I'm not sure exactly where your path is coming from. However, a couple
of points: you need
export PATH
somewhere to make PATH part of the global environment (not just limited
to within the profile script; you can extent the path thus:
export PATH=$PATH:
or
export PATH=:$P
Hi all:
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 ~/b
4 matches
Mail list logo