Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com To: cygwin AT cygwin DOT com From: Jason Curl Subject: Re: PATH and SystemRoot oddity Date: Fri, 26 Nov 2004 22:10:29 +0100 Lines: 35 Message-ID: References: <20041126064717 DOT 0A1A4837CA AT pessard DOT research DOT canon DOT com DOT au> <41A6D980 DOT 41FE183F AT dessent DOT net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet AT sea DOT gmane DOT org X-Gmane-NNTP-Posting-Host: 83.133.12.123 User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) In-Reply-To: X-IsSubscribed: yes Igor Pechtchanski wrote: > On Fri, 26 Nov 2004, Jason Curl wrote: > > >>I have a similar question: I had to modify 'profile' to change >> $PATH=xxxx:$PATH >>to >> $PATH=xxxx >> >>How can I simply add $SYSTEMROOT:$SYSTEMROOT/system32 to this? It >>doesn't work as-is because $SYSTEMROOT = C:\Windows (and this is >>therefore not interpreted by the path). Rephrasing, what do I use to >>translate "C:\WINDOWS" to "/cygdrive/c/windows"? >> >>I had to do this because some nasty things in my path were causing > > > 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"`" > > HTH, > Igor > P.S. FWIW, the question is not that similar, and you should probably have > started a new thread with it. Sorry - next time it will be a new thread. OTOH, this is exactly the solution I didn't know how to implement. Spasibo Bolshoi! -- 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/