From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 65159 invoked by alias); 23 Feb 2017 17:50:10 -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 65144 invoked by uid 89); 23 Feb 2017 17:50:09 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=2.1 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=H*UA:Bat!, H*x:Bat!, H*F:D*yandex.ru, penny X-HELO: forward1h.cmail.yandex.net Received: from forward1h.cmail.yandex.net (HELO forward1h.cmail.yandex.net) (87.250.230.16) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 23 Feb 2017 17:50:07 +0000 Received: from smtp2h.mail.yandex.net (smtp2h.mail.yandex.net [84.201.187.145]) by forward1h.cmail.yandex.net (Yandex) with ESMTP id 2EFB720EA8; Thu, 23 Feb 2017 20:50:04 +0300 (MSK) Received: from smtp2h.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp2h.mail.yandex.net (Yandex) with ESMTP id 7E63B781FF1; Thu, 23 Feb 2017 20:50:03 +0300 (MSK) Received: by smtp2h.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id TduAQTWWEY-o24q6o9F; Thu, 23 Feb 2017 20:50:02 +0300 (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client certificate not present) Authentication-Results: smtp2h.mail.yandex.net; dkim=pass header.i=@yandex.ru X-Yandex-Suid-Status: 1 0,1 0 Received: from [192.168.1.10] (HELO daemon2.darkdragon.lan) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Thu, 23 Feb 2017 17:38:08 -0000 Date: Thu, 23 Feb 2017 17:50:00 -0000 From: Andrey Repin Reply-To: cygwin@cygwin.com Message-ID: <1835159156.20170223203808@yandex.ru> To: Steven Penny , cygwin@cygwin.com Subject: Re: [ANNOUNCEMENT] Updated: dash-0.5.9.1-1 In-Reply-To: <58ae6311.57a8ca0a.9eea8.6ebb@mx.google.com> References: <58ae6311.57a8ca0a.9eea8.6ebb@mx.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2017-02/txt/msg00289.txt.bz2 Greetings, Steven Penny! > On Fri, 17 Feb 2017 07:50:34, "Eric Blake (cygwin)" wrote: >> For now, there are no immediate plans of replacing /bin/sh >> with dash, but the possibility remains for the future. > I am a fan of this. $ cat /etc/postinstall/zp_dash-as-bin-sh.dash #!/bin/dash test ! -h /bin/sh.exe && { _f="$(mktemp /bin/sh.XXXXXX)" { mv /bin/sh.exe "$_f" ln -s /bin/dash.exe /bin/sh.exe } || mv "$_f" /bin/sh.exe rm "$_f" } exit 0 > Debian does this already, and it would dramatically speed up > shell scripts: > $ cat alfa.sh > x=400000 > until [ "$((x -= 1))" = 0 ] > do : > done > $ time bash alfa.sh > real 0m5.735s > $ time dash alfa.sh > real 0m1.112s > Dash can handle large scripts; I am already using it with one (545 SLOC): > http://github.com/svnpenn/sage/blob/master/sage -- With best regards, Andrey Repin Thursday, February 23, 2017 20:36:35 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