This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: run batch w/o .bat?


At 02:06 PM 6/4/2002, Barnhart, Kevin wrote:


>        [Barnhart, Kevin]  As I understand it, the only alternative right
>now is to place #! at the beginning of each of my batch files.  You
>mentioned that having the shell program sort through for .bat in addition to
>other extensions would be a performance issue.  I was just commenting that
>this alternative would probably be worse than the fraction of a second that
>the shell would have to take to look at some additional files.  I'm probably
>more of a special case, though (which is why this would be a nice option). 
>
>        >>  >>        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.
>> 

No, it shouldn't be the only option.  You can invoke cmd.exe (or command.com)
in you case with 9x) and pass it the name of your batch file.  With this,
you don't need to alter any batch file contents.  I expect there are other
options as well.

My comment with respect to adding BAT to the list of file extensions to 
recognize has a bit less to do with interactive user-perceived performance 
drops (although there may be some) than overall code complexity and the fact 
that the same argument could be made for other extensions.  In addition, you 
have to consider that this change also affects scripts, so every executable 
invoked in a script will be subject to any performance drain this additional
searching imposes.   However, if this is something you're interested in 
pursuing, it's always easier to evaluate the merits of proposed functionality 
based on a patch.  I'm certainly not trying to discourage you from that route
if you're so inclined.

 



Larry Hall                              lhall@rfk.com
RFK Partners, Inc.                      http://www.rfk.com
838 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]