delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/11/07/16:54:43

X-Recipient: archive-cygwin AT delorie DOT 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 AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT 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 AT cs DOT umass DOT edu>
Reply-To: moss AT cs DOT umass DOT 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 AT cygwin DOT com
Subject: Re: how to embed shell script within a .BAT file
References: <0D835E9B9CD07F40A48423F80D3B5A702E8379F0 AT USA7109MB022 DOT na DOT xerox DOT net> <545D3E21 DOT 2030306 AT bopp DOT net>
In-Reply-To: <545D3E21.2030306@bopp.net>
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019