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://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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 |
To: | cygwin AT cygwin DOT com |
X-Injected-Via-Gmane: | http://gmane.org/ |
Path: | not-for-mail |
From: | =?ISO-8859-1?Q?Sven_K=F6hler?= <skoehler AT upb DOT de> |
Subject: | Re: CYGWIN Installer should setup a root environment variable |
Date: | Wed, 06 Nov 2002 12:42:21 +0100 |
Lines: | 20 |
Message-ID: | <aqauqf$8e9$1@main.gmane.org> |
References: | <3DC8A128 DOT 90309 AT pobox DOT com> <Pine DOT GSO DOT 4 DOT 44 DOT 0211060108050 DOT 24745-100000 AT slinky DOT cs DOT nyu DOT edu> |
NNTP-Posting-Host: | pd9e588a0.dip.t-dialin.net |
Mime-Version: | 1.0 |
X-Trace: | main.gmane.org 1036582543 8649 217.229.136.160 (6 Nov 2002 11:35:43 GMT) |
X-Complaints-To: | usenet AT main DOT gmane DOT org |
NNTP-Posting-Date: | Wed, 6 Nov 2002 11:35:43 +0000 (UTC) |
User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2b) Gecko/20021016 |
X-Accept-Language: | de, en |
In-Reply-To: | <3DC8A128.90309@pobox.com> |
> >I have experienced many times situations which I would like to refer to > >CYGWIN's root directory from a bat script. The most generic solution > >would be to utilise an environment variable such as CYGROOT or (as in > >startxwin.bat) CYGWIN_ROOT to refer to the absolute windows pathname > >(e.g. D:\cygwin). This would free us from making assumptions if it was > >setup during the installation utility. The environment variable should > >be setup for system if installed for "All Users". > > > `cygpath -w /` nice idea, but how does he execute cygpath, if he doesn't know the cygwin-root? he is talking about a _batch_-script, not a shell script. there is only one solution, because even if you know cygwin's root-dir, yu cannot be sure to know cygwin's bin-dir - it could be mounted to a totally different directory. i would recomm writing shell-scripts instead of batch-scripts. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |