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


On 2009-12-01, ??????????????? wrote:

> > $PATH returns the value of PATH. For example, to display the path, use "echo
> > $PATH".
> > This is not Cygwin-specific though so further discussion is likely to be
> > off-topic for this list.

> 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".
> 
> `echo $PATH' would display the path of cygwin:
> echo $PATH
> /usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/sbin:/sbin

    cygpath -w -p "$PATH"

Regards,
Gary



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