This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: how to embed shell script within a .BAT file
- From: cyg Simple <cygsimple at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Sun, 9 Nov 2014 18:01:37 -0500
- Subject: Re: how to embed shell script within a .BAT file
- Authentication-results: sourceware.org; auth=none
- References: <0D835E9B9CD07F40A48423F80D3B5A702E8379F0 at USA7109MB022 dot na dot xerox dot net>
On Fri, Nov 7, 2014 at 4:26 PM, Nellis, Kenneth wrote:
> I'm tired of creating pairs of script files: a clickable .BAT file
> to invoke my shell script and then my shell script to do the actual
> work. I was wondering if any of the geniuses on this list have come
> up with a way to embed a shell script inside a clickable .BAT file.
>
Isn't this as simple as adding the path to cygwin/bin to PATH and
executing the commands you need?
Or associate .sh extension to cygwin/bin/bash.exe then clicking will
associate the correct shell.
--
cyg Simple
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple