delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/02/28/16:43:25

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:subject:to:references
:content-type; q=dns; s=default; b=iCfUvltspAbdMtj2cstLTfVxTM3Ay
PvCVizh5eKdcteRgf7+fiBvMfe8UtBM4ttE+ObO4XDUGboePM+P01OZ3J0a6QbeE
KVo7Lh8CbtGVe+KTBU+50VDR10eWWrJ3c/2do72bhIlfNz7otjl8WNB3YJFe4xqL
wQa7nOzKhHclvU=
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:subject:to:references
:content-type; s=default; bh=kGzm/WO7FuwUNKMJuYMnHxcPkpk=; b=QQO
OROvOdo4dQbU1SMhnCJJ8Kks2j3DvNVCnX58n6JKld2CcJnxqdp+sHGlrmhG1UnL
ZMGkmLaoXt0M+UXcOnm7KSglJq2RTsD8LnZP9dj5d1ZS7nuMRMyPy/JoyoYW8Dvb
pbrQQ3v95BWTzKBEu5KnQslnEEXGcMW+WCtVEfNw=
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=Hx-languages-length:1403, H*f:sk:10fdf67, H*c:utf8, *you*
X-HELO: mail-ot0-f171.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:subject:to:references :user-agent; bh=96HN1KdGTy8F7JMogaEFeA+uIQl+uMLo3DQ9YjaAB4E=; b=LYemliqQjuCzRC28pluFgEG5xUdIl39PQMpJjsNgB8FNG5hrjRf9g6OspWQC0ANmdv skzMEy96/x3aJ27CgQp5DO4nKOMsIpv+s3vftBVRsyKEAfsPTrJOg8OiXKPaD+usXKx5 c49IEZ6GG2x8PDTeLmbP4OIYCp00VBXwnKPEyDqcW/WeuRAcBc8Aghhmqyxt06PbE+Ky vj5rQSqyQEzg2p2kEB8nkSgZko/AmKe70UExrfE4wWpnsc77vDSwRBnN58uJXkH11wYv KVciLk3kziTuUzV77A0S36qXtQRuKaz/OdYkwgQC+pcfjr5ngoatje8Ua41DfmG7oLP0 bsTA==
X-Gm-Message-State: AMke39mcgYDbjAIrncH2UL939wlSRQ1LzX90e9LczdQJHNaHJBygDY/iYWIWxT8MspgpFA==
X-Received: by 10.157.41.135 with SMTP id n7mr2282281otb.204.1488318188559; Tue, 28 Feb 2017 13:43:08 -0800 (PST)
Message-ID: <58b5eeeb.96529d0a.ac17f.6939@mx.google.com>
Date: Tue, 28 Feb 2017 13:43:07 -0800 (PST)
From: Steven Penny <svnpenn AT gmail DOT com>
X-Google-Original-From: Steven Penny
Subject: Re: [ANNOUNCEMENT] Updated: dash-0.5.9.1-1
To: cygwin AT cygwin DOT com
References: <10fdf67b-9960-7888-ad72-b67b1f2d95a9 AT gmail DOT com>
User-Agent: Tryst/2.0.1 (github.com/svnpenn/tryst)

On Tue, 28 Feb 2017 15:52:15, cyg Simple wrote:
> Ironic that *you* should make the same argument for using #!/bin/bash as
> I've made to you about using #!/bin/dash.

Its not the same argument:

- You are talking about people assuming Dash is /bin/sh
- I am talking about people assuming Bash is /bin/sh

Both are wrong, but assuming Dash is /bin/sh is leagues more innocuous:

- Dash doesnt have arrays
- Dash doesnt have herestrings
- Dash doesnt have process substitution
- etc

So even if someone does mess up and include a Dashism with /bin/sh, it should be
trivial to fix. If you include heavy Bashisms with /bin/sh, it can be very hard
to undo that. Dash is not interchangable with POSIX sh, but it is certainly
closer than Bash.

> But that doesn't mean you should expect /bin/sh to be dash.

I certainly dont expect that. I expect /bin/sh to be POSIX sh, and try to write
my scripts accordingly. Dash helps with this because it forces you to lose
Bashisms when writing scripts.

> The idea is only sound because it uses less resources and when we're talking
> about Windows a little resource makes a big difference.

Exactly. Even with Dash as /bin/sh, we are still about 5x slower than Linux
/bin/sh. People who are using /bin/sh with the assumption that it is Bash can
just change their shebang, or remove the Bashisms from their /bin/sh scripts.


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