Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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\)" To: , Subject: RE: Portable Cygwin on a CD Date: Mon, 5 May 2003 18:52:47 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" 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 Content-Transfer-Encoding: 8bit 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