> -----Original Message-----
> From: Linux on 390 Port [mailto:[EMAIL PROTECTED] On 
> Behalf Of Leland Lucius
> Sent: Friday, April 13, 2007 4:17 PM
> To: [EMAIL PROTECTED]
> Subject: Re: How to replace a "entry" in PATH?
> 
> 
> Quoting "McKown, John" <[EMAIL PROTECTED]>:
> 
> > #!/bin/sh
> > newhome="/java160"
> > if [ ! -z "$JAVA_HOME" ]; then
> > PATH=$(echo "$PATH" | sed -e "s#$JAVA_HOME/bin##g;s/::/:/g")
> > fi
> > export JAVA_HOME=${newhome}
> > export PATH="$PATH:$JAVA_HOME/bin"
> >
> Will this work for ya?
> 
> Leland

That looks promising. I would think that the # symbol is not likely to
occur in a directory name.

--
John McKown
Senior Systems Programmer
HealthMarkets
Keeping the Promise of Affordable Coverage
Administrative Services Group
Information Technology

The information contained in this e-mail message may be privileged
and/or confidential.  It is for intended addressee(s) only.  If you are
not the intended recipient, you are hereby notified that any disclosure,
reproduction, distribution or other use of this communication is
strictly prohibited and could, in certain circumstances, be a criminal
offense.  If you have received this e-mail in error, please notify the
sender by reply and delete this message without copying or disclosing
it. 
That looks promising. I would think that the # symbol is not likely to
occur in a directory name.

--
John McKown
Senior Systems Programmer
HealthMarkets
Keeping the Promise of Affordable Coverage
Administrative Services Group
Information Technology

The information contained in this e-mail message may be privileged
and/or confidential.  It is for intended addressee(s) only.  If you are
not the intended recipient, you are hereby notified that any disclosure,
reproduction, distribution or other use of this communication is
strictly prohibited and could, in certain circumstances, be a criminal
offense.  If you have received this e-mail in error, please notify the
sender by reply and delete this message without copying or disclosing
it. 

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to