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:date:from:reply-to:message-id:to:subject
	:in-reply-to:references:mime-version:content-type
	:content-transfer-encoding; q=dns; s=default; b=S6fR7v25f5pV5S3W
	/3Pa76Rra1WflYfRR3YtqwyMAC7dktWs4ejJU4sACLnRPP/jeB0wyvFTHA414M8Q
	zFQC8mS/RsCzIxKLvuJRJPUTY9gLt9f/vzbn7bbte4RzzcpT6JMfuzcrz8COUV60
	XrBeLb1hGh2W8N0t9zwI4Zj+bBk=
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:date:from:reply-to:message-id:to:subject
	:in-reply-to:references:mime-version:content-type
	:content-transfer-encoding; s=default; bh=WU4lndgvrssdPPSgzqv46e
	oJDVI=; b=P/lqX+jLcve3HfMiosQs4Jgk2cAniyJh3udk6WvLIoS5P9nivwH74z
	NkDsZEWNeJ6iBAf5mpHhyWhfQBm2cJhIlGXA5HUu97DJNgOne9BGxA4gCwLoH7Ha
	a7IZpq3QtFIqNFCueqO8weD6ini+X3P/NgjvN9UQuVElKqbNE0rhA=
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=-3.3 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT,SPF_SOFTFAIL autolearn=no version=3.3.2
X-HELO: smtp.ht-systems.ru
Date: Fri, 24 Oct 2014 17:37:15 +0400
From: Andrey Repin <anrdaemon@yandex.ru>
Reply-To: cygwin@cygwin.com
Message-ID: <1518233276.20141024173715@yandex.ru>
To: John Wiersba <jrw32982@yahoo.com>, cygwin@cygwin.com
Subject: Re: Why can't run.exe execute a shebang script directly?
In-Reply-To: <1414155946.62587.YahooMailNeo@web162803.mail.bf1.yahoo.com>
References: <1414155946.62587.YahooMailNeo@web162803.mail.bf1.yahoo.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

Greetings, John Wiersba!

> I would have thought cygwin1.dll contains the code necessary to do this,
> like the linux kernel does.  Can it be added to the dll or does it have to
> be added to each executable individually, such as bash.exe, run.exe, etc.?

>   bash$ /bin/run ./try
>   run FATAL: Could not start D:\ftp\try

All right except the fact that run.exe is designed to start Windows
applications (or associations). It just doesn't try the cygwin magic on the
files it tries to start. I suggest /bin/env instead.


--
WBR,
Andrey Repin (anrdaemon@yandex.ru) 24.10.2014, <17:35>

Sorry for my terrible english...


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

