public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: Useful cygwinism: "Explorer Here"
       [not found] <1025333888.1042.ezmlm@cygwin.com>
@ 2002-07-03  0:58 ` Reini Urban
  2002-07-03  7:08   ` Getting /cygdrive in scripts (was Re: Useful cygwinism: "Explorer Here") Dario Alcocer
  0 siblings, 1 reply; 2+ messages in thread
From: Reini Urban @ 2002-07-03  0:58 UTC (permalink / raw)
  To: cygwin

> Betreff: Re: Useful cygwinism: "Explorer Here"
> Datum: Fri, 28 Jun 2002 20:07:14 +0200
> Von: "Gerrit P. Haase" <freeweb@nyckelpiga.de>
> 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.

-- 
Reini Urban    
http://xarch.tu-graz.ac.at/home/rurban/

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Getting /cygdrive in scripts (was Re: Useful cygwinism: "Explorer Here")
  2002-07-03  0:58 ` Useful cygwinism: "Explorer Here" Reini Urban
@ 2002-07-03  7:08   ` Dario Alcocer
  0 siblings, 0 replies; 2+ messages in thread
From: Dario Alcocer @ 2002-07-03  7:08 UTC (permalink / raw)
  To: cygwin

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" <freeweb@nyckelpiga.de>
> > 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/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-07-03 13:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1025333888.1042.ezmlm@cygwin.com>
2002-07-03  0:58 ` Useful cygwinism: "Explorer Here" Reini Urban
2002-07-03  7:08   ` Getting /cygdrive in scripts (was Re: Useful cygwinism: "Explorer Here") Dario Alcocer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).