how to get the windows PATH env in cygwin
Mark J. Reed
markjreed@gmail.com
Tue Dec 1 01:27:00 GMT 2009
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
More information about the Cygwin
mailing list