This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: how to get the windows PATH env in cygwin


2009/11/30 ïãçåæ:
> 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.

-- 
Mark J. Reed <markjreed@gmail.com>

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]