delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/10/24/11:27:04

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:mime-version:to:subject
:references:in-reply-to:content-type; q=dns; s=default; b=oBtOiq
PuG8fFEg4TnjZRfHfX8b+sXDcymN58zKbNjp0hslTgzDWogtJHvS+G9jt9u4wzdC
Bfvk6BPFowLv/D1DsaYM1pXSuWvxzzL10bW25ri1SfdGZJQQv4BT4dQGgpmcpslZ
/+RDEk8yC/G4e5mhlsJjvn9YUOqPKBXRRpCZ4=
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:mime-version:to:subject
:references:in-reply-to:content-type; s=default; bh=25s6/IoRn3iM
B2vneUIhzhRU/3Y=; b=Kev9xp47Ih/b1L+JJehqaMsu4PJ0/go6dfvtlwDqWLV8
eZ+WjTDPu9wMY1+O/trccZ7mZZDgJmomt7JoUkKVngp02+Xr2FQxH4syY2n687MV
vjtTriIDLvlx3TBfQbV2+cKe2M7P/GB9iB5PJiDFfWJMZCxolxx/9wwf4rSMZHw=
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=-2.8 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mx1.redhat.com
Message-ID: <544A6FB4.5070004@redhat.com>
Date: Fri, 24 Oct 2014 09:26:44 -0600
From: Eric Blake <eblake AT redhat DOT com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Why can't run.exe execute a shebang script directly?
References: <1414155946 DOT 62587 DOT YahooMailNeo AT web162803 DOT mail DOT bf1 DOT yahoo DOT com> <20141024135339 DOT GM20607 AT calimero DOT vinschen DOT de> <1414163944 DOT 58941 DOT YahooMailNeo AT web162803 DOT mail DOT bf1 DOT yahoo DOT com>
In-Reply-To: <1414163944.58941.YahooMailNeo@web162803.mail.bf1.yahoo.com>
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
X-IsSubscribed: yes

--E75pFVdeEOcC78Il5KuTGIH2b0obLQ6Fi
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

On 10/24/2014 09:19 AM, John Wiersba wrote:

> I thought that all (or virtually all) cygwin-supplied programs that start=
=20
> other programs use the cygwin1.dll execve(2) emulation to start them, bec=
ause=20
> the execve emulation can be used to start *both* cygwin programs and wind=
ows=20
> native programs.  Or at least it seems that way to me.
>=20
> Is there be in drawback to having run.exe start its target program using
> the execve emulation in cygwin1.dll, rather than using a Windows call to
> start the target executable?

run.exe is special.  In order to hide consoles, it MUST use native
windows API instead of cygwin1.dll calls.

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


--E75pFVdeEOcC78Il5KuTGIH2b0obLQ6Fi
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg

iQEcBAEBCAAGBQJUSm+0AAoJEKeha0olJ0Nq80EH/i66JIrcILFoM3DRGWH+3Gfk
byIyZHppkydWJIPCThdeaKBWHRRymFFfiCSht764ag+ZqcV6+e90PcS2bX0LzJby
mS6zXhPPD8/uubycAtFAFonP23fLD5G4J+sj3zG0xsA29D/Mj1DGquhZx4MM7GbI
5l1Gz9W0genkdoPVNdDZp7hy2Y2mehkFejBnmf3Tq/PuI/B8UXoYwETf9xH6jedx
sxzZBhZX7kDgo9nxLlBT/vJv/IYjGZ3tqXMumWewZ0dDItZDe6tyE0NCRTzrdjiY
5Hl50yoI3ohRMSsJkjyL8iiITN8pF9Ks7+pEVW9xeiXk5OWYLtArF3JtyKlGSOc=
=L9K1
-----END PGP SIGNATURE-----

--E75pFVdeEOcC78Il5KuTGIH2b0obLQ6Fi--

- Raw text -


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