X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: <8d7f7110911301717jbafbc2ci432817b1c713f1e6@mail.gmail.com> References: <8d7f7110911300444l7ab3c2c8l5ac1edf0097d2065 AT mail DOT gmail DOT com> <4B142061 DOT 6000200 AT cygwin DOT com> <8d7f7110911301717jbafbc2ci432817b1c713f1e6 AT mail DOT gmail DOT com> Date: Mon, 30 Nov 2009 20:27:15 -0500 Message-ID: Subject: Re: how to get the windows PATH env in cygwin From: "Mark J. Reed" To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 2009/11/30 =EF=B8=B6=E3=84=A3=E7=84=A1=E5=90=8D=E6=B0=8F: > What i mean is that, how to only get the env path of windows, such as, > `C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem". As I understand it, by the time you're in a Cygwin bash shell, the environment variable has been changed by the Cygwin DLL, and the original Windows value is gone. But I believe launching a Windows process will restore it, so you can try this: cmd /c "echo %PATH%". Not at my Cygwin box to test, though. --=20 Mark J. Reed -- 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