Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
To: cygwin@cygwin.com
From: Jason Curl <j.m.curl@optusnet.com.au>
Subject: Re: PATH and SystemRoot oddity
Date: Sat, 27 Nov 2004 12:07:01 +0100
Lines: 24
Message-ID: <co9n4m$ege$1@sea.gmane.org>
References: <20041126064717.0A1A4837CA@pessard.research.canon.com.au> <41A6D980.41FE183F@dessent.net> <co82qr$str$1@sea.gmane.org> <Pine.GSO.4.61.0411261541000.14489@slinky.cs.nyu.edu> <co864a$s1p$1@sea.gmane.org> <Pine.GSO.4.61.0411261638280.14489@slinky.cs.nyu.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: usenet@sea.gmane.org
X-Gmane-NNTP-Posting-Host: 1cust66.tnt5.muc2.deu.da.uu.net
User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103)
In-Reply-To: <Pine.GSO.4.61.0411261638280.14489@slinky.cs.nyu.edu>
X-IsSubscribed: yes

Igor Pechtchanski wrote:
>>>First off, you could have actually removed the offending entries from the
>>>PATH using something like
>>>
>>>OFFENDING_ENTRY="/cygdrive/c/ClearCase/bin"
>>>PATH="`echo "$PATH" | sed "s#:$OFFENDING_ENTRY##"`"
>>>
>>>Alternatively, if you want to translate any Win32 path to a Cygwin
>>>(POSIX) path, use the "cygpath" utility, like this:
>>>
>>>PATH=${PATH}:"`cygpath -u "$SYSTEMROOT/system32"`"
> 
> Glad it helped.  Out of curiousity, which one of the two solutions above
> did you mean?

Originally, I was looking for something like 'cygpath' in it, but I was 
pleasantly surprised by the other solution:

OFFENDING_ENTRY="/cygdrive/c/ClearCase/bin"
PATH="`echo "$PATH" | sed "s#:$OFFENDING_ENTRY##"`"

I'm now modifying it to remove paths with 'Rational' in it. I'd rather 
not modify the original 'profile' if I can help it. Makes it easier to 
destroy cygwin and reinstall from scratch.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

