[plug] Java environment variable
Carl Gherardi
gherardi at cs.curtin.edu.au
Tue Sep 25 17:16:42 WST 2001
On Tue, 25 Sep 2001, Christian wrote:
> On Tue, Sep 25, 2001 at 03:59:42PM +0800, Carl Gherardi wrote:
>
> > under bash
> >
> > PATH=`echo $PATH`:/path/to/java
> >
> > Or in your .bashrc file
> >
> > PATH=$PATH:/path/to/java
>
> The first is equivalent to the second really -- just less efficient. I
> think you'll also need to put 'export' at the beginning to make the
> variable available to other descendant processes.
Heh, realised that when I read my own mail.
I cut and past a line from my bashrc to remove "." and realised it wasn't
necessary. For anyone interested
PATH=`echo $PATH | sed -e 's/::/:/g; s/:.:/:/g; s/:.$//; s/^://'`
Carl
More information about the plug
mailing list