[plug] Java environment variable
J Michael Gilks
gilksjm at iinet.net.au
Wed Sep 26 08:44:16 WST 2001
Thanks guys. I'll get right in there now.
Love
Mike.
-----Original Message-----
From: Carl Gherardi [mailto:gherardi at cs.curtin.edu.au]
Sent: Tuesday, 25 September 2001 5:17 PM
To: plug at plug.linux.org.au
Subject: Re: [plug] Java environment variable
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