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
To: cygwin@cygwin.com
From: Andrew DeFaria <Andrew@DeFaria.com>
Subject: Re: A good way to test if cygwin isn't installed?
Date: Fri, 01 Oct 2004 08:44:00 -0700
Lines: 31
Message-ID: <cjju05$44c$1@sea.gmane.org>
References: <20041001045101.8AA6484C99@pessard.research.canon.com.au> <20041001151631.GJ15450@trixie.casa.cgf.cx>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: usenet@sea.gmane.org
X-Gmane-NNTP-Posting-Host: h-67-102-25-114.lsanca54.covad.net
User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913)
In-Reply-To: <20041001151631.GJ15450@trixie.casa.cgf.cx>
X-IsSubscribed: yes

Christopher Faylor wrote:

> On Fri, Oct 01, 2004 at 02:51:01PM +1000, 
> luke.kendall@cisra.canon.com.au wrote:
>
>> I just wanted to run an idea past the list.
>>
>> I want to write a shell script to test if Cygwin has been installed 
>> on the machine running the shell script.
>>
>> I do this by running a shell (from a network install of Cygwin if 
>> necessary).
>>
>> If Cygwin is installed on the local machine, then "cygpath -w /" 
>> returns something like "c:\cygwin". (Good for discovering what drive  
>> Cygwin was installed on, right?) If Cygwin has not been installed,  
>> "cygpath -w /" returns a plain old backslash.
>>
>> That's fine - maybe even great. My question: is that a reliable way 
>> to perform that test? It seems good to me.
>
> If you have cygwin programs available to you, then use the mount 
> command. If the only output from the mount command is of the 
> "noumount" variety then cygwin isn't installed in any meaningful way.

Personally I would consider the existence or non-existence of 
cygwin1.dll to be a more definitive measure of whether or not Cygwin is 
installed in a "meaningful" way.

-- 
Headline: Bear takes over Disneyland in Pooh D'Etat!


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

