delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/11/30/22:52:45

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Andrew DeFaria <Andrew AT DeFaria DOT com>
Subject: Re: how to get the windows PATH env in cygwin
Date: Mon, 30 Nov 2009 20:52:11 -0700
Lines: 21
Message-ID: <hf23tc$i47$1@ger.gmane.org>
References: <8d7f7110911300444l7ab3c2c8l5ac1edf0097d2065 AT mail DOT gmail DOT com> <4B142061 DOT 6000200 AT cygwin DOT com> <8d7f7110911301717jbafbc2ci432817b1c713f1e6 AT mail DOT gmail DOT com> <20091201013022 DOT GA2336 AT KCJs-Computer> <4B147423 DOT 1050404 AT bopp DOT net> <hf1tlj$60o$2 AT ger DOT gmane DOT org> <4B1487F1 DOT 5080302 AT gmail DOT com>
Mime-Version: 1.0
User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.1.5) Gecko/20091121 Lightning/1.0pre Thunderbird/3.0
In-Reply-To: <4B1487F1.5080302@gmail.com>
X-Stationery: 0.4.10
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
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

On 11/30/2009 08:05 PM, Dave Korn wrote:
> Andrew DeFaria wrote:
>> Simply start the Windows command prompt and type in echo %PATH%.
> You must need to re-read the subject line, since your suggested method 
> does not actually answer the question asked.
Indeed! You're right. So then the answer is that you can use that to see 
what the Windows PATH is before Cygwin gets to it and you can see the 
resulting PATH variable after Cygwin has modified it (or you can go 
through steps to try to stop Cygwin from modifying it) but there is no 
environment variable for the Windows PATH. You could change 
/etc/profile(?) to export WINDOWS_PATH=$PATH before it starts changing 
it - or maybe you can interrogate the registry. The real question here 
is what does he need the Windows PATH for? If just to look at then echo 
%PATH% in a cmd shell or look at System: Properties: Advanced: 
Environment variables: PATH (Both user and system).
-- 
Andrew DeFaria <http://defaria.com>
Is God willing to prevent evil, but not able? Then he is not omnipotent. 
Is he able, but not willing? then he is malevolent. Is he both able and 
willing? Then whence cometh evil? Is he neither able nor willing? Then 
why call him God?


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

- Raw text -


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