delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/10/24/09:50:30

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: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 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=-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 AT yandex DOT ru>
Reply-To: cygwin AT cygwin DOT com
Message-ID: <1518233276.20141024173715@yandex.ru>
To: John Wiersba <jrw32982 AT yahoo DOT com>, cygwin AT cygwin DOT 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 DOT 62587 DOT YahooMailNeo AT web162803 DOT mail DOT bf1 DOT yahoo DOT com>
MIME-Version: 1.0
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 AT yandex DOT 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

- Raw text -


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