delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/11/26/16:39:49

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Fri, 26 Nov 2004 16:39:38 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Jason Curl <j DOT m DOT curl AT optusnet DOT com DOT au>
cc: cygwin AT cygwin DOT com
Subject: Re: PATH and SystemRoot oddity
In-Reply-To: <co864a$s1p$1@sea.gmane.org>
Message-ID: <Pine.GSO.4.61.0411261638280.14489@slinky.cs.nyu.edu>
References: <20041126064717 DOT 0A1A4837CA AT pessard DOT research DOT canon DOT com DOT au> <41A6D980 DOT 41FE183F AT dessent DOT net> <co82qr$str$1 AT sea DOT gmane DOT org> <Pine DOT GSO DOT 4 DOT 61 DOT 0411261541000 DOT 14489 AT slinky DOT cs DOT nyu DOT edu> <co864a$s1p$1 AT sea DOT gmane DOT org>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.39

On Fri, 26 Nov 2004, Jason Curl wrote:

> 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.

Glad it helped.  Out of curiousity, which one of the two solutions above
did you mean?

> Spasibo Bolshoi!

Na zdorovie.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019