delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/05/05/07:20:21

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=qJKyB8x6wdhKxK3R
ehdRqIGuZo3XVkC/brjp0KcmNxECmZhxWBAlvicZ3k58d7kZNDZ4etgEnsrvNANV
SHdPiuzyHEkk2jg8M2TzPr9EpRlJ9GfkzkVpp1MLbvnG3jXYpeh8a7AJd5t+mz08
dZPblIeRlhl7ltCwobt7uFShNO8=
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=fX9ID5VanSut0wTovQ4EA9
vPkqU=; b=i+r+oiqUIoqEaEBtDqlrD9naZmPSclMhj80IsuTcOtHIjBkDkedXku
IV3IJ35FyOC2q14N3GjT5wFetGdPn08PV4LYXdqJMqztmv5aEF458IvomFPx8q7U
+rCUEUZWjggj0k6mqrFEvx6vWU4pZb8JIvdt81hy+UlGOf1fUbEXo=
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=-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
Authentication-Results: smtp3m.mail.yandex.net; dkim=pass header.i=@yandex.ru
X-Yandex-Suid-Status: 1 0
Date: Fri, 5 May 2017 14:17:50 +0300
From: Andrey Repin <anrdaemon AT yandex DOT ru>
Reply-To: cygwin AT cygwin DOT com
Message-ID: <1351717921.20170505141750@yandex.ru>
To: Joni Eskelinen <cygwin AT cygwin DOT com>, cygwin AT cygwin DOT com
Subject: Re: [ANNOUNCEMENT] New: cygextreg-1.2.0-1
In-Reply-To: <announce.131486df-0b2e-a6d7-9840-21ecd08755a9@gmail.com>
References: <announce DOT 131486df-0b2e-a6d7-9840-21ecd08755a9 AT gmail DOT com>
MIME-Version: 1.0
X-IsSubscribed: yes

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

- Raw text -


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