X-Recipient: archive-cygwin@delorie.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:content-type:mime-version:subject:from
	:in-reply-to:date:content-transfer-encoding:message-id
	:references:to; q=dns; s=default; b=j/PUqULlC6UQ8J96f0puag9rWvAR
	sH8Ir3o/ckczSiDPQgpj4UKzQ9dc2wrYciltkU3/EqwLZc6z3yr+TQx/gU3P/No1
	m/L3FfcN6uQPA4X2a2ZhLwSrOG/jmVWH8PG/WqlqihvgnJcjDg94z47jCYSvCzDG
	sM+m1V1XFdiy+wU=
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:content-type:mime-version:subject:from
	:in-reply-to:date:content-transfer-encoding:message-id
	:references:to; s=default; bh=FyHL1SQKVQZAmlMxhNyR7JpVkKU=; b=rJ
	8f5Y8SAy7TNU509u+b0VtZHt2vvH8FwYv5nCUhRLljCr48VAFGLDmBc0tXys04G1
	CYB0bcB7xYOl2CBpqHkHHd2JceBM/jKJ9wL/Cok+PkP2UitX6j1LJvoYhp/XBF2R
	fl9jwbZgoUyieKFA356+Zy5iRPK8DQ8Dfr0Nx7RyE=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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_50,KAM_LAZY_DOMAIN_SECURITY,T_RP_MATCHES_RCVD autolearn=no version=3.3.2
X-HELO: etr-usa.com
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\))
Subject: Re: bug: cygwin 2.0 doesn't work at all
From: Warren Young <wyml@etr-usa.com>
In-Reply-To: <trinity-fb583d65-b360-410c-bc6c-da381e290934-1430215078423@3capp-mailcom-lxa09>
Date: Tue, 28 Apr 2015 08:32:07 -0600
Message-Id: <3DAAAC49-0B01-4B64-B983-BC0B374B15B1@etr-usa.com>
References: <trinity-fb583d65-b360-410c-bc6c-da381e290934-1430215078423@3capp-mailcom-lxa09>
To: The Cygwin Mailing List <cygwin@cygwin.com>
X-IsSubscribed: yes
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id t3SEWPLb031836

On Apr 28, 2015, at 3:57 AM, Leonid Mironov <lvm@royal.net> wrote:
> 
> Upgrading cygwin package to 2.0 broke [almost] all programs using cygwin1.dll

WJJFM on Windows 10, both word sizes.

>    c:\cygwin\bin
>    C:\Windows\system32
>    C:\Windows
>    C:\Windows\System32\Wbem
>    C:\Windows\System32\WindowsPowerShell\v1.0\
>    C:\Oracle\product\11.2.0\client_1\bin
>    c:\util
>    c:\batch
>    c:\util\tccle
>    c:\util\sysinternals
>    .
>    C:\util\winMerge
>    c:\cygwin\bin
>    c:\util
>    c:\util\sysinternals
>    C:\ProgramData\Oracle\Java\javapath
>    c:\cygwin\bin
>    C:\Windows\system32
>    C:\Windows
>    C:\Windows\System32\Wbem
>    C:\Windows\System32\WindowsPowerShell\v1.0\
>    C:\Oracle\product\11.2.0\client_1\bin
>    c:\util
>    c:\batch
>    c:\util\tccle
>    c:\util\sysinternals
>    .
>    C:\util\winMerge

I doubt this is the real problem, but there are some problems here:

1. Something is duplicating whole sections of the PATH.  The Cygwin bin directory appears three times!

2. You should never put . in the PATH.  Native Windows shells already behave as if . is in the PATH without needing it to be explicitly present, and Unix systems never ship with . in the PATH, for security reasons.  Get into the habit of saying “./myprogram” when running something in the local directory instead.

3. If you ran cygcheck from a cmd.exe shell, that means you’ve put the Cygwin bin directory into the native PATH.  While this can be the right thing in some circumstances, there are enough problems with it that it’s worth reconsidering. 

(One case in point is warned about by cygcheck: Cygwin programs shadowing native programs like find.exe.)
--
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


