[plug] Java environment variable

J Michael Gilks gilksjm at iinet.net.au
Wed Sep 26 09:42:29 WST 2001


I actually have a list of .bashrc files. Which one would be best.
/etc/bash.bashrc
/etc/skel/.bashrc
/home/mike/.bashrc
/root/.bashrc
/usr/share/base-files/dot.bashrc
They all look pretty similar except /root/.bashrc which seems pretty
specific for Adabas database.
Sorry about this.
Love
Mike.

-----Original Message-----
From: J Michael Gilks [mailto:gilksjm at iinet.net.au]
Sent: Wednesday, 26 September 2001 8:44 AM
To: plug at plug.linux.org.au
Subject: RE: [plug] Java environment variable


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