delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/11/26/15:23:28

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
Reply-To: Cygwin List <cygwin AT cygwin DOT com>
Message-Id: <6.2.0.14.0.20041126151726.03be1538@pop.prospeed.net>
Date: Fri, 26 Nov 2004 15:19:24 -0500
To: Jason Curl <j DOT m DOT curl AT optusnet DOT com DOT au>, cygwin AT cygwin DOT com
From: Larry Hall <lh-no-personal-replies-please AT cygwin DOT com>
Subject: Re: PATH and SystemRoot oddity
In-Reply-To: <co82qr$str$1@sea.gmane.org>
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>
Mime-Version: 1.0

At 03:14 PM 11/26/2004, you wrote:
>Brian Dessent wrote:
>>Luke Kendall wrote:
>>
>>>I see that by default PATH includes some entries like
>>>%SystemRoot%/System32
>>>
>>>I also note that $SystemRoot is undefined, yet $SYSTEMROOT contains the
>>>expected C:\WINDOWS value.
>>>
>>>This of course causes problems.  Would a backslash-style path work
>>>correctly if it were properly interpolated into the PATH?  Is the %
>>>notation special magic for Cygwin to handle DOS-isms?
>>>
>>>The case variance may be of interest, in that case.
>>
>>I think you're falsely attributing your errors to this.  The cygwin DLL
>>takes care of all the win32 -> posix translation of the path, and it
>>knows about %SystemRoot%.  If this were really the case don't you think
>>tons of things would break?  Try "echo $PATH" at your shell prompt and
>>you'll see that the systemroot is correctly substituted.
>>FWIW, I think environment variables are case-insensitive at the win32
>>API level.  They preserve case but are not sensitive to it, just like
>>ntfs.
>>Brian
>
>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 problems (e.g. ClearQuest/ClearCase)


I'll state one obvious option - just add "/cygdrive/c/windows", etc. in your
'profile'.  If you want Cygwin to do the translation for you, change the path
in 'cygwin.bat' (or whatever your startup link is) instead.



--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746                     


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