delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/02/22/23:20:56

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:message-id:date:from:to:subject:references
:content-type; q=dns; s=default; b=nshARJf/VAxGWt/+UMLItBgNNKQbD
nIcc/0bccSwl0I4CBcNaFQZqoMtdmAM5KaDjj9QSioH5vjOORwWu8Rp7r2JEVm3p
XQNlyOCwT+BKkYVpvKxh9XLNcp3AEe/xxPGEsp65IFueZzzlLsqooxwohW8TUIsO
BeRaWCfTpTIFSk=
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:message-id:date:from:to:subject:references
:content-type; s=default; bh=ipwgN8bKY0Ess9hVVeMl4JLah78=; b=OlI
QyHu3HtFANrPUwWhHAefGOM/cYoi2IltYKkAUgKOUIE7glelhILY77r4+v8yfudl
uSF/9tc6KlYYFxWsqnCxukxsnHycoX9mg5fN7Qu7TvGn2WJUM0k/efTHBsQ8/b//
QoIkyFO3HI0NSAs1rvivKojGgynyrATzUVmQUsuY=
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=-1.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=sage, 545, H*M:google
X-HELO: mail-oi0-f50.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:to:subject:references :user-agent; bh=oSYc/IGLv6O/bOhrKMK6oG1crryZ1duYq2tEySnGCso=; b=BTh5XCzYqj8P612gRyXiwXFsM4nXDnjbfCEMdBHQ3ecItJCNOQFM9PMsA4pgBtiUKB VSaLDEawv2G7s5if9uR49wgUBDqo2Iv6bmgEZpg9qmtW65YXdrGTczuLfIB5kwyIm2LH ikwSs/kA47NKv48MMr/mhcNfAvLFW9lgsLXC9mIpJkMKkg4bazNxQkgfV3rBNjmxNMir hp9DRcFKTxmKy9t7szuwgw4Fm5ChokpXwl6AgjdQbr2pKsunpjPEPSLmOYPn6rksL4E6 UhMhve0tFVugZGUl3BBi8geQAaaqgKxy6q4TUY5OtlO/qptEoXBPPJOpoz3CAoDB0Al/ gnJw==
X-Gm-Message-State: AMke39nCCLoUJw5Cy8T/xpQqv312uJ5mmDIgWtt3OrXk/jHJUHRGAfXJ0MS2asFAYFAcGQ==
X-Received: by 10.202.175.8 with SMTP id y8mr11891819oie.190.1487823633989; Wed, 22 Feb 2017 20:20:33 -0800 (PST)
Message-ID: <58ae6311.57a8ca0a.9eea8.6ebb@mx.google.com>
Date: Wed, 22 Feb 2017 20:20:33 -0800 (PST)
From: Steven Penny <svnpenn AT gmail DOT com>
X-Google-Original-From: Steven Penny
To: cygwin AT cygwin DOT com
Subject: Re: [ANNOUNCEMENT] Updated: dash-0.5.9.1-1
References: <announce DOT 327710ac-2397-1929-0675-978d3fc356f3 AT redhat DOT com>
User-Agent: Tryst/2.0.1 (github.com/svnpenn/tryst)

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. 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


--
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