From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 49505 invoked by alias); 28 Feb 2017 21:43:12 -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 48366 invoked by uid 89); 28 Feb 2017 21:43:11 -0000 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 Received: from mail-ot0-f171.google.com (HELO mail-ot0-f171.google.com) (74.125.82.171) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 28 Feb 2017 21:43:10 +0000 Received: by mail-ot0-f171.google.com with SMTP id k4so17102714otc.0 for ; Tue, 28 Feb 2017 13:43:10 -0800 (PST) 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) Received: from dNd ([2605:6000:9fc0:56:811:343f:f904:d318]) by smtp.gmail.com with ESMTPSA id f22sm1119535oth.37.2017.02.28.13.43.07 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Feb 2017 13:43:07 -0800 (PST) Message-ID: <58b5eeeb.96529d0a.ac17f.6939@mx.google.com> Date: Tue, 28 Feb 2017 21:43:00 -0000 From: Steven Penny X-Google-Original-From: Steven Penny Subject: Re: [ANNOUNCEMENT] Updated: dash-0.5.9.1-1 To: cygwin@cygwin.com References: <10fdf67b-9960-7888-ad72-b67b1f2d95a9@gmail.com> Content-Type: text/plain; charset=utf8; format=flowed User-Agent: Tryst/2.0.1 (github.com/svnpenn/tryst) X-SW-Source: 2017-02/txt/msg00356.txt.bz2 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