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
X-Injected-Via-Gmane: http://gmane.org/
To: cygwin@cygwin.com
From: "Soren A." <somian@adelphia.net>
Subject: Re: example needed pls: `cygpath -c <HANDLE>'
Date: Sun, 6 Jul 2003 06:55:10 +0000 (UTC)
Organization: Not very well.
Lines: 46
Message-ID: <Xns93B01DBE4141alsocuteandfluffywor@80.91.224.249>
References: <3EFE120B.58A0C79E@dessent.net> <Pine.GSO.4.44.0306282234360.22307-100000@slinky.cs.nyu.edu> <20030701040434.GE7604@ny-kenton2a-710.buf.adelphia.net> <3F018740.B28F53DC@dessent.net> <3F018D6C.EA1226CA@dessent.net> <Xns93ABB16F2D760soren1Gmane@80.91.224.249> <3F021C46.C8F4CE31@dessent.net> <Xns93AC469331861soren1Gmane@80.91.224.249> <Xns93AC47EC6AA77soren1Gmane@80.91.224.249> <3F02DA32.EAD1FC18@dessent.net>
X-Complaints-To: usenet@main.gmane.org
User-Agent: Xnews/5.04.25
X-archive: encrypt

Brian Dessent <brian@dessent.net> wrote in news:3F02DA32.EAD1FC18@dessent.net:

> I was wondering why I didn't have any CYGROOT set. [...] since
> $CYGROOT is non-standard [...]

A little more about $CYGROOT. It also makes the cygwin.bat file used by
default to start bash more flexible. We can do something like this (works
under NT/2K/XP TTBOMK):

---- snip! ---- 8< ----- Cut Here -----
@echo off

:: My part -- customizations
SET CYGWIN=noenvcache check_case:adjust title ntsec export
SET PATH=%SystemRoot%\System32;%SystemRoot%

CALL :FindMe %CYGROOT%
GOTO :EOF

:FindMe
SET CYGHOMEDIR=%~d1
%CYGHOMEDIR%
chdir %CYGROOT%\bin
SET CYGHOMEDIR=

IF EXIST rxvt.exe GOTO :rxvtterm
GOTO :EOF

:rxvtterm
rxvt -display ':0' +vb -cr '20,252,123' -ls -C -sk -sr -sl 3600 -geometry '122x48+0+0' -fg '#94C9E0' -bg '#061212' -fn 'Andale Mono-15' -e bash --login -i
GOTO :EOF

:bashconsole
:: Default -- standard part
bash --login -i

---- snip! ---- 8< ----- Cut Here -----

So, %CYGROOT% isn't standard, but I find it's highly useful ;-).

-- 
"So, tell me, my little one-eyed one, on what poor, pitiful,
defenseless planet has my MONSTROSITY been unleashed?"
                       - Dr. Jumba, Disney's "Lilo & Stitch"
OpenPGP Key at http://savannah.gnu.org/people/viewgpg.php?user_id=6050



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

