| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
| :list-unsubscribe:list-subscribe:list-archive:list-post | |
| :list-help:sender:message-id:date:from:mime-version:to:subject | |
| :references:in-reply-to:content-type:content-transfer-encoding; | |
| q=dns; s=default; b=M6yc3exiJlF0UckH+/NY7aGlHKNZzmHtPqBapEXydeF | |
| 000iTpMwTgQ2OABP2L32JgulZqmARgVnK/cvql0dxMf62bw+ej5J9WSvrd95s48L | |
| Iu84+uPFdk+hE2YMTYrQkNt7QfzCLiTXXlT3NGMAqSs+nhxqR4fqaMfxCwSXkuFo | |
| = | |
| DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
| :list-unsubscribe:list-subscribe:list-archive:list-post | |
| :list-help:sender:message-id:date:from:mime-version:to:subject | |
| :references:in-reply-to:content-type:content-transfer-encoding; | |
| s=default; bh=JlNm6bCVluW2i9wkseVRuTIldNQ=; b=NR29Q1UIhYsdaacwb | |
| L6Y2uGeax6LC7hZeBoljn16R3JPuO+MPWfG6w96ueQISWO7MdH+wt25Chh+vSN0Z | |
| 61tsgVdNYdcgzt85QIqw8Aqz12y4TXgrQu4BxjCi0ExR1Avw4NEb9F0vjUkrylr7 | |
| hqJOCo/lgFbgzkk4B3q6epTChI= | |
| 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 |
| Authentication-Results: | sourceware.org; auth=none |
| X-Virus-Found: | No |
| X-Spam-SWARE-Status: | No, score=-0.6 required=5.0 tests=AWL,BAYES_40,RP_MATCHES_RCVD autolearn=ham version=3.3.2 |
| X-HELO: | etr-usa.com |
| Message-ID: | <5331A662.6030201@etr-usa.com> |
| Date: | Tue, 25 Mar 2014 09:53:06 -0600 |
| From: | Warren Young <warren AT etr-usa DOT com> |
| User-Agent: | Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 |
| MIME-Version: | 1.0 |
| To: | Cygwin-L <cygwin AT cygwin DOT com> |
| Subject: | Re: bash adds dot to $PATH (was: Re: $PATH contains dot but unclear where it comes from) |
| References: | <CAM9pMnPHk+78886DU86tKY6HmOQQUsZLFQk2XoOCMR-aVcUvwg AT mail DOT gmail DOT com> |
| In-Reply-To: | <CAM9pMnPHk+78886DU86tKY6HmOQQUsZLFQk2XoOCMR-aVcUvwg@mail.gmail.com> |
| X-IsSubscribed: | yes |
On 3/6/2014 05:29, Robert Klemme wrote:
> The phenomenon persists, for these executions:
> c:\cygwin64\bin\bash.exe --norc --noprofile -i
> c:\cygwin64\bin\bash.exe --norc --noprofile
> c:\cygwin64\bin\bash.exe -i -l
>
> Actually I could not find a commandline with bash that did not lead to
> the dot appended.
Try something a bit different for me, please. At a cmd.exe prompt:
c:\cygwin64\bin\bash -x exit > Links\Desktop\bashlog.txt 2>&1
Examine that log file carefully, or attach it to a reply here if you
don't mind sharing its potentially sensitive contents. I think you'll
find -- among the hundreds of commands that get logged by bash -x --
that . is explicitly being added somewhere along the way.
> I created the attached cygcheck.out
Did you notice that there is no dot in the path in either path dump in
the first part of that file? Presumably you ran cygcheck under Bash,
which inherited the PATH that Bash had.
Unless this is some weird feature of Bash that you've turned on, the
only way I can think of that this can happen is that you have a shell
startup script that is appending . to the path without exporting it.
You could confirm with:
$ export PATH
$ cygcheck -srv > x
Then look at 'x' and see if the path dumps at the start of that file now
contain the dot.
Other oddities in that cygcheck output:
> Cygwin installations found in the registry:
> System: Key: e022582115c10879 Path: C:\cygwin64
> User: Key: c5e39b7a9d22bafb Path: C:\cygwin (ORPHANED)
> User: Key: e022582115c10879 Path: c:\cygwin64
Is c:\cygwin entirely removed?
> c:\cygwin64 / system binary,auto
> c:\cygwin64\bin /usr/bin system binary,auto
> c:\cygwin64\lib /usr/lib system binary,auto
> cygdrive prefix /cygdrive user binary,posix=0,auto
>
> Not Found: awk
> Not Found: bash
> Not Found: cat
> Not Found: cp
> Not Found: cpp (good!)
> Not Found: crontab
> Found: C:\Windows\SYSTEM32\find.exe
> Not Found: gcc
> Not Found: gdb
> Not Found: grep
> Not Found: kill
> Not Found: ld
> Not Found: ls
> Not Found: make
> Not Found: mv
> Not Found: patch
> Not Found: perl
> Not Found: rm
> Not Found: sed
> Not Found: ssh
> Not Found: sh
> Not Found: tar
> Not Found: test
> Not Found: vi
> Not Found: vim
>
> Warning: cygwin1.dll not found on your path
This system is fairly screwed up. This tells me that Cygwin's bin is
mounted on /usr/bin, yet above we saw that c:\cygwin64\bin isn't in your
PATH. I'm thinking someone has monkeyed with your shell startup scripts.
I suspect both of these problems are related. The same thing that has
added . to your PATH has removed Cygwin's bin from it.
I don't see how you got cygcheck to run at all.
--
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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |