www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/05/05/12:54:02

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
From: "Hannu E K Nevalainen \(garbage mail\)" <garbage_collector AT telia DOT com>
To: <fergus AT bonhard DOT uklinux DOT net>, <cygwin AT cygwin DOT com>
Subject: RE: Portable Cygwin on a CD
Date: Mon, 5 May 2003 18:52:47 +0200
Message-ID: <NGBBLLIAMFLGJEOAJCCEGEEKCPAA.garbage_collector@telia.com>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
In-Reply-To: <000701c312ef$08448da0$6fc82486@medschool.dundee.ac.uk>
X-Mimeole: Produced By Microsoft MimeOLE V5.50.4925.2800
Importance: Normal
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id h45Gs1D26106

> From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com]On Behalf
> Of fergus AT bonhard DOT uklinux DOT net


> at some point after starting up. I've tried any number of ways of 
> automating
> this to take place early in /etc/profile or ~/.bash_profile (mount -f
> "$HOMEDRIVE" "/" or whatever, but HOMEDRIVE isn't known until it's mounted
> ...). The requirement for this line is basically that Cygwin needs to be
> told the drive letter of the CD drive. (Or, if Cygwin doesn't, 
> then system()
> calls from within the application certainly do.)

C:\Program\Cygwin\bin>cd | cut -c-3
C:\
C:\Program\Cygwin\bin> \
 cd | bash -c 'export CDROOT=`cut -c-3`;rxvt -e /bin/bash --login -i'
...
$ set | grep CD    
CDROOT='C:\'

HTH ;-)

/Hannu E K Nevalainen, Mariefred, Sweden
 

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019