This is the mail archive of the cygwin@sources.redhat.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]

Re: Link "bash" to "ksh" to be more "portable"?


--- "David M. Karr" <dkarr@tcsi.com> wrote:
> 
> I'm aware of the recently mentioned incantation to run a ".bat" file
> from Cygwin.  I would guess that a very simple "cygrunbat" script
> could encapsulate this.
> 

Create a noop executable named #!.exe and put it in the /bin directory.  Then
in the foo.bat file put something like `#! c:/winnt/system32/cmd /c' as the
first line of the file.  The file still has to be named foo.bat so that cmd
recognizes it as an executable file.

Cheers,

=====
--- <http://earniesystems.safeshopper.com> ---
   Earnie Boyd: <mailto:earnie_boyd@yahoo.com>
            __Cygwin: POSIX on Windows__
Cygwin Newbies: <http://gw32.freeyellow.com/>
           __Minimalist GNU for Windows__
    Mingw Home: <http://www.mingw.org/>

__________________________________________________
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


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