From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14943 invoked by alias); 3 Jul 2002 13:49:03 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 14852 invoked from network); 3 Jul 2002 13:48:58 -0000 Received: from unknown (HELO ns.helixdigital.com) (68.15.28.22) by sources.redhat.com with SMTP; 3 Jul 2002 13:48:58 -0000 Received: from ns.helixdigital.com (alcocer@localhost [127.0.0.1]) by ns.helixdigital.com (8.12.2/8.12.2) with ESMTP id g63Dmvfs016456 for ; Wed, 3 Jul 2002 06:48:57 -0700 (PDT) Received: (from alcocer@localhost) by ns.helixdigital.com (8.12.2/8.12.2/Submit) id g63Dlgsg014237 for cygwin@cygwin.com; Wed, 3 Jul 2002 06:47:42 -0700 (PDT) Date: Wed, 03 Jul 2002 07:08:00 -0000 From: Dario Alcocer To: cygwin@cygwin.com Subject: Getting /cygdrive in scripts (was Re: Useful cygwinism: "Explorer Here") Message-ID: <20020703064741.A13551@ns.helixdigital.com> References: <1025333888.1042.ezmlm@cygwin.com> <3D22AC4D.24267EDC@x-ray.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 X-SW-Source: 2002-07/txt/msg00240.txt.bz2 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@cygwin.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@helixdigital.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/