X-Recipient: archive-cygwin@delorie.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@cygwin.com From: Andrew DeFaria Subject: Re: how to get the windows PATH env in cygwin Date: Mon, 30 Nov 2009 20:52:11 -0700 Lines: 21 Message-ID: References: <8d7f7110911300444l7ab3c2c8l5ac1edf0097d2065@mail.gmail.com> <4B142061.6000200@cygwin.com> <8d7f7110911301717jbafbc2ci432817b1c713f1e6@mail.gmail.com> <20091201013022.GA2336@KCJs-Computer> <4B147423.1050404@bopp.net> <4B1487F1.5080302@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Delivered-To: mailing list cygwin@cygwin.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 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