X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:date:from:reply-to:mime-version:to
	:subject:references:in-reply-to:content-type
	:content-transfer-encoding; q=dns; s=default; b=FlZQXWGHbGOlsolz
	En8/d2nVT8d/Guu7Gj8OEuAnvf1ecaoRHlqKhfYdq29zTT40cHAGDxMaxyrqwho1
	XuMzlDfRJ5A4GhgiYp1dSNcuK3bLdrDUaVPzGzQqoVjx6UzhKJvPkH2zD1bwW/QN
	EuXVHl9cR8ARgZ41aUsKhXWgOcw=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:date:from:reply-to:mime-version:to
	:subject:references:in-reply-to:content-type
	:content-transfer-encoding; s=default; bh=NYOHSXLLaokGmu+tW60Iuf
	f9nsw=; b=UwSYWD4Nr+hoJbKOhf1n/60caqBxZ9FQjUN+Mun51hR+tC9J454+IV
	TG/85zwnfDPxoBwkqMp+XpHiKdvRH8YWHGF5zoMy02EDQ9yF6aOmeUxNOshJZNmv
	nLUc8nSZLMLQjxnxyJXULfCf2UuXF9BIlCCXyxbWBexke2MhJ0+f8=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_40,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD autolearn=ham version=3.3.2
X-HELO: csmail.cs.umass.edu
Message-ID: <545D3F91.9040302@cs.umass.edu>
Date: Fri, 07 Nov 2014 16:54:25 -0500
From: Eliot Moss <moss@cs.umass.edu>
Reply-To: moss@cs.umass.edu
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: how to embed shell script within a .BAT file
References: <0D835E9B9CD07F40A48423F80D3B5A702E8379F0@USA7109MB022.na.xerox.net> <545D3E21.2030306@bopp.net>
In-Reply-To: <545D3E21.2030306@bopp.net>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

Do you really need to embed the script *within* the file?
It would be straightforward to *invoke* a script from the
file by something along the lines of:

bash -c script

in the .bat file ... Eliot Moss

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

