| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-SWARE-Spam-Status: | No, hits=0.0 required=5.0 tests=BAYES_50 |
| X-Spam-Check-By: | sourceware.org |
| To: | cygwin AT cygwin DOT com |
| Subject: | problem setting cygwin $PATH |
| From: | Tom Roche <Tom_Roche AT pobox DOT com> |
| Reply-to: | Tom Roche <Tom_Roche AT pobox DOT com> |
| Message-Id: | <20090525175525.74AB1141DB457@cedar.isis.unc.edu> |
| Date: | Mon, 25 May 2009 13:55:25 -0400 (EDT) |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |