Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Mon, 26 May 2003 09:55:23 -0400 (EDT)
From: Igor Pechtchanski <pechtcha@cs.nyu.edu>
Reply-To: cygwin@cygwin.com
To: zzapper <david@tvis.co.uk>
cc: cygwin@cygwin.com
Subject: Re: recognising .bat as an executable
In-Reply-To: <gbq3dvo8mreamj0a9t90vmev9g20cir87b@4ax.com>
Message-ID: <Pine.GSO.4.44.0305260948200.26092-100000@slinky.cs.nyu.edu>
Importance: Normal
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Mon, 26 May 2003, zzapper wrote:

> Hi Y'All
>
> How do I get bash to recognise a MSDOS batch file as an executable
>
> At present I have to type ppm.bat in full, rather just ppm
> zzapper

"cmd /c ppm" or do an "ln -s ppm.bat ppm" first.

This raises a similar issue: "vi" and "egrep" cannot be invoked from
cmd.exe, because cmd doesn't recognize symbolic links.  A solution to this
would be to also create "vi.bat" and "egrep.bat".  I'm not suggesting that
this be done in the default package installation (although it wouldn't
hurt), but I wanted to get this into the archives.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

