Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com X-Authentication-Warning: ginger.cc.utexas.edu: grouse owned process doing -bs Date: Mon, 17 Sep 2001 18:05:56 -0500 (CDT) From: Michael Hoffman To: anoop AT alumni DOT duke DOT edu cc: cygwin AT cygwin DOT com Subject: Re: using aliases for cygwin commands on win2k In-Reply-To: <20010917225406.95591.qmail@web11106.mail.yahoo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Mon, 17 Sep 2001, Anoop Ghanwani wrote: > --- Robert Collins wrote: ... > > Run bash/tcsh/ksh. Do not run cmd.exe. ... > If I do that, I lose the ability to start applications > automatically by simply typing the file name. For example, > if I have a file try.doc, and I type try.doc at the Windows > 2000 command prompt, it brings up Word with that document. Put the following two lines into /usr/local/bin/start: #!/bin/sh cmd /c start `cygpath -w $*` Then, chmod a+x /usr/local/bin/start Now you can do this: $ start try.doc Or my personal favorite: $ start . [opens the current directory in an explorer window] Voila. -- Michael Hoffman The University of Texas at Austin -- 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/