delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Date: | Fri, 1 Oct 2004 11:16:31 -0400 |
From: | Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: A good way to test if cygwin isn't installed? |
Message-ID: | <20041001151631.GJ15450@trixie.casa.cgf.cx> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <20041001045101 DOT 8AA6484C99 AT pessard DOT research DOT canon DOT com DOT au> |
Mime-Version: | 1.0 |
In-Reply-To: | <20041001045101.8AA6484C99@pessard.research.canon.com.au> |
User-Agent: | Mutt/1.4.1i |
On Fri, Oct 01, 2004 at 02:51:01PM +1000, luke DOT kendall AT cisra DOT canon DOT com DOT 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. -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |