Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Thu, 18 Dec 2003 10:23:44 -0500
From: Christopher Faylor <cgf-no-personal-reply-please@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Is cygwin_ROOT still there?
Message-ID: <20031218152344.GA6945@redhat.com>
Mail-Followup-To: cygwin@cygwin.com
References: <20031216180803.GD9896@redhat.com> <Pine.HPX.4.44.0312161228340.4583-100000@risc4.numis.nwu.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <Pine.HPX.4.44.0312161228340.4583-100000@risc4.numis.nwu.edu>
User-Agent: Mutt/1.4.1i
X-IsSubscribed: yes
Reply-To: cygwin@cygwin.com

On Thu, Dec 18, 2003 at 07:34:11AM -0600, L. D. Marks wrote:
>Thanks. A slightly tortuous solution, but this works (after adding mount
>to a limited set of executables). FYI, I used a ls /cygwin/cygwin.bat
>to test for the existence of cygwin on the system.

Wouldn't checking for cygwin1.dll be an infinitely better test?

>N.B., to include a snippet from startxwin.bat:
>
>REM The path in the CYGWIN_ROOT environment variable assignment assume
>REM that Cygwin is installed in a directory called 'cygwin' in the root
>REM directory of the current drive.  You will only need to modify
>REM CYGWIN_ROOT if you have installed Cygwin in another directory.  For
>REM example, if you installed Cygwin in \foo\bar\baz\cygwin, you will need
>REM to change \cygwin to \foo\bar\baz\cygwin.

startxwin.bat != cygwin

This is just a convention used by one .bat file.  It is not a universally
understood convention throughout cygwin.

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

