public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Warren Young <wyml@etr-usa.com>
To: The Cygwin Mailing List <cygwin@cygwin.com>
Subject: Re: bug: cygwin 2.0 doesn't work at all
Date: Tue, 28 Apr 2015 14:32:00 -0000	[thread overview]
Message-ID: <3DAAAC49-0B01-4B64-B983-BC0B374B15B1@etr-usa.com> (raw)
In-Reply-To: <trinity-fb583d65-b360-410c-bc6c-da381e290934-1430215078423@3capp-mailcom-lxa09>

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

  parent reply	other threads:[~2015-04-28 14:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-28  9:58 Leonid Mironov
2015-04-28 10:55 ` Marco Atzeri
2015-04-28 14:32 ` Warren Young [this message]
2015-04-28 17:00 ` Achim Gratz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3DAAAC49-0B01-4B64-B983-BC0B374B15B1@etr-usa.com \
    --to=wyml@etr-usa.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).