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: Fri, 26 Nov 2004 21:14:15 +0100
Lines: 45
Message-ID: <co82qr$str$1@sea.gmane.org>
References: <20041126064717.0A1A4837CA@pessard.research.canon.com.au> <41A6D980.41FE183F@dessent.net>
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: 83.133.12.123
User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103)
In-Reply-To: <41A6D980.41FE183F@dessent.net>
X-IsSubscribed: yes

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)

TIA,
Jason.


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

