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 Tue, Dec 1, 2009 at 2:24 PM, Lee Maschmeyer <> wrote:
>> To verify it, all you have to do is open a bash prompt (Cygw
> 0/tty2W0(2)$ echo $PATH
> /home/lmaschm/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/c/Program
> Files/Common Files/Microsoft Shared/Windows Live:/c/WINDOWS
> /system32:/c/WINDOWS:/c/WINDOWS/System32/Wbem:/c/WINDOWS/system32/WindowsPowerShell/v1.0:/c/Program
> Files/Common Files/Microsoft Sha
> red/Windows Live:/usr/lib/lapack
> 0/tty2W0(2)$ cmd
> Microsoft Windows XP [Version 5.1.2600]
> (C) Copyright 1985-2001 Microsoft Corp.
>
> C:\cygwin-1.7\home\lmaschm>path
> path
> PATH=C:\cygwin-1.7\home\lmaschm\bin;C:\cygwin-1.7\usr\local\bin;C:\cygwin-1.7\bin;C:\cygwin-1.7\bin;C:\cygwin-1.7\usr\X11R6\bin;C:\P
> rogram Files\Common Files\Microsoft Shared\Windows
> Live;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\system32\
> WindowsPowerShell\v1.0;C:\Program Files\Common Files\Microsoft
> Shared\Windows Live;C:\cygwin-1.7\lib\lapack
>
> C:\cygwin-1.7\home\lmaschm>exit
> exit
> 0/tty2W0(2)$

of course if you run cmd from a bash prompt it will have the cygwin
pre-pended path because it inherited it from its parent process

ran mintty from start menu
$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/Python26/:/cygdrive/c/Program
Files (x86)/ActiveState Komodo IDE 5/ ... etc

ran cmd.exe from start menu
C:\>path
PATH=C:\Python26\;C:\Program Files (x86)\ActiveState Komodo IDE 5\ ... etc

no cygwin path even though the bash prompt with the cygwin pre-pended
path is still open and still has the new (or rather, modified) path
variable

-Jason

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