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]

problem setting cygwin $PATH


I'm attempting to debug a problem with the cygwin upgrade I attempted
today (25 May 09). But before I post about that, I'd like to fix a
problem I just noticed with my {old, backed-up, still working} cygwin:
duplicate cygwin paths. 

I have this win32 path (formatted for clarity) before running cygwin,
taken from Control Panel\System\Advanced\Environment Variables:

> e:\ProgramFiles\WindowsResourceKits\Tools\
> e:\ProgramFiles\Cygwin\20090525old\bin
> e:\ProgramFiles\Cygwin\20090525old\usr\X11R6\bin
> C:\Program Files\ThinkPad\Utilities
> C:\WINDOWS\system32
> C:\WINDOWS
> C:\WINDOWS\System32\Wbem
> C:\Program Files\Diskeeper Corporation\Diskeeper\
> C:\Program Files\ThinkPad\ConnectUtilities
> e:\ProgramFiles\MySQL\Server\5.0\bin
> C:\Program Files\Common Files\Lenovo
> e:\ProgramFiles\OpenAFS\Common
> e:\ProgramFiles\OpenAFS\Client\Program

which matches the output from cmd's `path`. But from a subsequent
Cygwin xterm (formatted for clarity):

$ echo $PATH
> /usr/local/bin
> /usr/bin
> /bin
> /usr/X11R6/bin
> /usr/local/bin
> /usr/bin
> /bin
> /usr/X11R6/bin
> /e/ProgramFiles/WindowsResourceKits/Tools/
> /usr/bin
> /usr/X11R6/bin
> /c/Program Files/ThinkPad/Utilities
> /c/WINDOWS/system32
> /c/WINDOWS
> /c/WINDOWS/System32/Wbem
> /c/Program Files/Diskeeper Corporation/Diskeeper/
> /c/Program Files/ThinkPad/ConnectUtilities
> /e/ProgramFiles/MySQL/Server/5.0/bin
> /c/Program Files/Common Files/Lenovo
> /e/ProgramFiles/OpenAFS/Common
> /e/ProgramFiles/OpenAFS/Client/Program

Noted duplicate cygwin paths above. However I'm not setting PATH in
any of the usual places:

$ fgrep -e 'PATH' .bash_profile .profile profile | fgrep -ve 'KEY_PATH'
profile:# PATH="/usr/local/bin:/usr/bin:/bin:${PATH}"
$ find . -maxdepth 1 -type f | grep -ve '~$' | xargs fgrep -e 'PATH' | fgrep -ve 'KEY_PATH'
./.bash_history:echo $PATH
./.bash_history:echo $PATH
./.bash_history:echo $PATH
./profile:# PATH="/usr/local/bin:/usr/bin:/bin:${PATH}"

Where else could these duplicate paths be set? Alternatively, how to
ensure that no duplicate paths are set?

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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