X-Spam-Check-By: sourceware.org
Reply-To: <fergus@bonhard.uklinux.net>
From: "fergus" <fergus@bonhard.uklinux.net>
To: <cygwin@cygwin.com>
Cc: <fergus@bonhard.uklinux.net>
Subject: PATHs in Windows and Cygwin
Date: Tue, 13 Jun 2006 08:17:56 +0100
Message-ID: <000001c68eb9$816483e0$af0210ac@tcgp.dundee.ac.uk>
MIME-Version: 1.0
Content-Type: text/plain; 	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 11
X-UoD-Scan-Signature: f8162d4be1e66f01d3a81f46d6f35ff7
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
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

My Windows PATH (XP Pro) is the moderately standard

    %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem

None of this is inherited when I use Cygwin, where the PATH is set to be

    /home/fergus/bin:/usr/local/bin:/usr/X11R6/bin:/usr/bin:/bin

However, if I start Cygwin from a command prompt having first set the
Windows PATH to (null) as follows

    c:> set PATH=
    c:> j:\bin\bash

then not everything works: I get messages of the style "This application has
failed to start because cygwin1.dll was not found".

1. I realise that Cygwin is not standalone (it needs a Windows platform to
run) but I had not realised that the conduit to required Windows files would
be through PATH (if setting PATH to (null) is indeed the reason for the
error msgs and loss of functionality).

But 2. If this _is_ the reason, why does the error msg refer to a missing
cygwin1.dll, which is clearly there on the Cygwin PATH?

Can anybody illuminate this for me, please? Thank you.

Fergus


--
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/

