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 Date: Wed, 3 Jul 2002 06:47:41 -0700 From: Dario Alcocer To: cygwin AT cygwin DOT com Subject: Getting /cygdrive in scripts (was Re: Useful cygwinism: "Explorer Here") Message-ID: <20020703064741.A13551@ns.helixdigital.com> References: <1025333888 DOT 1042 DOT ezmlm AT cygwin DOT com> <3D22AC4D DOT 24267EDC AT x-ray DOT at> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <3D22AC4D.24267EDC@x-ray.at>; from rurban@x-ray.at on Wed, Jul 03, 2002 at 07:48:29AM +0000 On Wed, Jul 03, 2002 at 07:48:29AM +0000, Reini Urban wrote: > > Betreff: Re: Useful cygwinism: "Explorer Here" > > Datum: Fri, 28 Jun 2002 20:07:14 +0200 > > Von: "Gerrit P. Haase" > > An: cygwin AT cygwin DOT com > > > > Bernard schrieb: > > > > > You can change the /cygdrive prefix, but I don't recommend it. > > > > Why? > > > > Gerrit > > -- > > =^..^= > > Many smaller tools just dumbly expect the /cygdrive prefix. > For example the latest ilisp packages for emacs and xemacs. > > cygprefix=`mount --show-cygdrive-prefix | head -n2|tail -n1|cut -f1 -d' > '` > is just too costly. I'm not in front of my Cygwin shell, but wouldn't the following be better? cygprefix=`mount --show-cygdrive-prefix | awk 'NR==2 {print $1}'` You command line is creating and destroying 4 processes, as opposed to the above, which only uses two. -- Dario Alcocer -- Sr. Software Developer, Helix Digital Inc. alcocer AT helixdigital DOT com -- http://www.helixdigital.com -- 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/