public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Eric Blake <eblake@redhat.com>
To: cygwin@cygwin.com
Subject: Re: how to embed shell script within a .BAT file
Date: Fri, 07 Nov 2014 21:32:00 -0000	[thread overview]
Message-ID: <545D3A5E.2040800@redhat.com> (raw)
In-Reply-To: <0D835E9B9CD07F40A48423F80D3B5A702E8379F0@USA7109MB022.na.xerox.net>

[-- Attachment #1: Type: text/plain, Size: 542 bytes --]

On 11/07/2014 10: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.

A quick google search for "polyglot shell bat" finds:
http://www.spinellis.gr/blog/20100112/

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 539 bytes --]

  reply	other threads:[~2014-11-07 21:32 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-07 21:26 Nellis, Kenneth
2014-11-07 21:32 ` Eric Blake [this message]
2014-11-09 22:05   ` Andrey Repin
2014-11-07 21:48 ` Jeremy Bopp
2014-11-07 21:54   ` Eliot Moss
2014-11-10 14:49   ` Nellis, Kenneth
2014-11-10 18:09     ` Achim Gratz
2014-11-11 16:12       ` Nellis, Kenneth
2014-11-11 20:05         ` Andrey Repin
2014-11-10 19:05     ` Andrey Repin
2014-11-10 20:13       ` Andrew DeFaria
2014-11-10 21:05         ` Andrey Repin
2014-11-09 22:05 ` Andrey Repin
2014-11-10  0:35   ` Mike Brown
2014-11-10  2:20     ` Andrey Repin
2014-11-10  4:24       ` Mike Brown
2014-11-09 23:01 ` cyg Simple

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=545D3A5E.2040800@redhat.com \
    --to=eblake@redhat.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).