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 Message-ID: From: "Barnhart, Kevin" To: "'cygwin AT cygwin DOT com'" Subject: RE: run batch w/o .bat? Date: Tue, 4 Jun 2002 15:46:24 -0600 MIME-Version: 1.0 Content-Type: text/plain Actually, I would settle for something like the following: alias 'bat'='!:0-0.bat !:1*' I'd like to add this into .bashrc. Problem is that when I type in 'bat' at the command line I get the following error: bash: !:0-0.bat: command not found I'm tried to escape the bang with a '\', but to no avail. If I type: !:0-0.bat !:1* at the command line then there is no problem--it does what is supposed to, which is to append '.bat' to the 0-word of the previous command. Help? Kevin > -----Original Message----- > From: Larry Hall (RFK Partners, Inc) [SMTP:lhall AT rfk DOT com] > Sent: Tuesday, June 04, 2002 11:56 AM > To: Barnhart, Kevin; 'cygwin AT cygwin DOT com' > Subject: RE: run batch w/o .bat? > > At 12:32 PM 6/4/2002, Barnhart, Kevin wrote: > > [Barnhart, Kevin] What sort of worms? > > I think my last sentence sums it up. Also, if you take a look at the > code responsible for figuring out what's an executable and what's not in > Cygwin, you'll likely get a better feel for the scope of the issue here. > > > > How big is the can? > > > No matter what size can you give me, I can find more worms than will fit > in > it! ;-) > > > > > Performance issues = me having to edit new batch files all the > time. > > > OK but I really have no idea what this statement means in the context of > this thread. > > > > Kevin > > > >> > >> > >> > >> >Same here; it's just nice to not have to remember to tack on the .bat > if > >> >possible. > >> > > >> > >> > >> Right. This has been discussed. It could be added but it opens up a > can > >> of > >> worms and would likely result in performance issues as well. Searching > >> for > >> foo.exe and foo.bat (and foo.com and foo.sh and ...) whenever someone > >> types > >> "foo" is not ideal. > >> > >> > > > >-- > >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/ -- 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/