This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: [ANNOUNCEMENT] New: cygextreg-1.2.0-1
- From: Andrey Repin <anrdaemon at yandex dot ru>
- To: Joni Eskelinen <cygwin at cygwin dot com>, cygwin at cygwin dot com
- Date: Fri, 5 May 2017 14:17:50 +0300
- Subject: Re: [ANNOUNCEMENT] New: cygextreg-1.2.0-1
- Authentication-results: sourceware.org; auth=none
- Authentication-results: smtp3m.mail.yandex.net; dkim=pass header.i=@yandex.ru
- References: <announce.131486df-0b2e-a6d7-9840-21ecd08755a9@gmail.com>
- Reply-to: cygwin at cygwin dot com
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