From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 68436 invoked by alias); 5 May 2017 11:20:04 -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 68070 invoked by uid 89); 5 May 2017 11:20:04 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KAM_THEBAT,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=H*UA:Bat!, H*x:Bat!, Enough, H*r:build X-HELO: forward1o.cmail.yandex.net Received: from forward1o.cmail.yandex.net (HELO forward1o.cmail.yandex.net) (37.9.109.84) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 05 May 2017 11:20:01 +0000 Received: from smtp3m.mail.yandex.net (smtp3m.mail.yandex.net [77.88.61.130]) by forward1o.cmail.yandex.net (Yandex) with ESMTP id C1A8721846 for ; Fri, 5 May 2017 14:20:01 +0300 (MSK) Received: from smtp3m.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp3m.mail.yandex.net (Yandex) with ESMTP id 3EF842840ECB for ; Fri, 5 May 2017 14:20:00 +0300 (MSK) Received: by smtp3m.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id YtiKSzljmA-K0d4dFIu; Fri, 05 May 2017 14:20:00 +0300 (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client certificate not present) Authentication-Results: smtp3m.mail.yandex.net; dkim=pass header.i=@yandex.ru X-Yandex-Suid-Status: 1 0 Received: from [192.168.1.10] (HELO daemon2.darkdragon.lan) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Fri, 05 May 2017 11:17:50 -0000 Date: Fri, 05 May 2017 11:20:00 -0000 From: Andrey Repin Reply-To: cygwin@cygwin.com Message-ID: <1351717921.20170505141750@yandex.ru> To: Joni Eskelinen , cygwin@cygwin.com Subject: Re: [ANNOUNCEMENT] New: cygextreg-1.2.0-1 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2017-05/txt/msg00064.txt.bz2 Greetings, Joni Eskelinen! > The following package has been added to the Cygwin distribution: > * cygextreg-1.2.0-1 > Scripts are executed with bash This must not be the case, unless explicitly requested. Enough that all Windows associations are executed with cmd if you try to CreateProcess blindly. Don't copy this mistake. If you want to make it useful, write a thin wrapper over exec() that finds out and runs proper interpreter, and support it with options to make interpreters happy. F.e. convert $0 to Cygwin path, if interpreter don't understand native paths (i.e. dash cringe over non-latin1 native paths and I yet to find out why). > in an interactive login shell. This should be optional. Login shell may cause $(pwd) to change, not to mention, it alters environment. > If the executed script exits with a non-zero code, MinTTY window This should be optional. > shall be kept open This should be optional. -- With best regards, Andrey Repin Friday, May 5, 2017 14:05:50 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