From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21530 invoked by alias); 24 Oct 2014 16:43:57 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 21520 invoked by uid 89); 24 Oct 2014 16:43:57 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,FREEMAIL_REPLYTO_END_DIGIT,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 X-HELO: nm40-vm10.bullet.mail.gq1.yahoo.com Received: from nm40-vm10.bullet.mail.gq1.yahoo.com (HELO nm40-vm10.bullet.mail.gq1.yahoo.com) (98.136.216.251) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Fri, 24 Oct 2014 16:43:56 +0000 Received: from [127.0.0.1] by nm40.bullet.mail.gq1.yahoo.com with NNFMP; 24 Oct 2014 16:43:54 -0000 Received: from [98.137.12.61] by nm40.bullet.mail.gq1.yahoo.com with NNFMP; 24 Oct 2014 16:40:53 -0000 Received: from [98.139.215.142] by tm6.bullet.mail.gq1.yahoo.com with NNFMP; 24 Oct 2014 16:40:53 -0000 Received: from [98.139.212.198] by tm13.bullet.mail.bf1.yahoo.com with NNFMP; 24 Oct 2014 16:40:52 -0000 Received: from [127.0.0.1] by omp1007.mail.bf1.yahoo.com with NNFMP; 24 Oct 2014 16:40:52 -0000 Received: (qmail 70062 invoked by uid 60001); 24 Oct 2014 16:40:52 -0000 Received: from [198.91.4.14] by web162802.mail.bf1.yahoo.com via HTTP; Fri, 24 Oct 2014 09:40:52 PDT References: <1414155946.62587.YahooMailNeo@web162803.mail.bf1.yahoo.com> <20141024135339.GM20607@calimero.vinschen.de> <1414163944.58941.YahooMailNeo@web162803.mail.bf1.yahoo.com> <544A6FB4.5070004@redhat.com> Message-ID: <1414168852.48564.YahooMailNeo@web162802.mail.bf1.yahoo.com> Date: Fri, 24 Oct 2014 16:43:00 -0000 From: John Wiersba Reply-To: John Wiersba Subject: Re: Why can't run.exe execute a shebang script directly? To: Eric Blake , "cygwin@cygwin.com" In-Reply-To: <544A6FB4.5070004@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-IsSubscribed: yes X-SW-Source: 2014-10/txt/msg00406.txt.bz2 > From: Eric Blake > On 10/24/2014 09:19 AM, John Wiersba wrote: > >> I thought that all (or virtually all) cygwin-supplied programs that start >> other programs use the cygwin1.dll execve(2) emulation to start them, > because >> the execve emulation can be used to start *both* cygwin programs and > windows >> native programs. Or at least it seems that way to me. >> >> 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. OK -- I guess that settles it, then! Thanks! -- 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