From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 125233 invoked by alias); 28 Feb 2017 20:52:01 -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 125159 invoked by uid 89); 28 Feb 2017 20:52:00 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=roe, xcu, Roe, 7908799 X-HELO: mail-io0-f178.google.com Received: from mail-io0-f178.google.com (HELO mail-io0-f178.google.com) (209.85.223.178) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 28 Feb 2017 20:51:59 +0000 Received: by mail-io0-f178.google.com with SMTP id 90so17814902ios.1 for ; Tue, 28 Feb 2017 12:51:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=l4vxqxOf1nRHgDXbjw8vAhoGPqaRCndYIoAdy+hlfkk=; b=cNSFb0DYuocR28LPux3MawQPqdKtJQbFTjUDCUNiaQzgMQR+7HIncmwyX/PKeoHsah 3TVYXdlA5NJ6SjEYvFWia8nhYrnpJjDL3h7Fk2yVEgl7JdOGucPC9JO+hj8QXzXtslB3 qA4R/sRmkY3KxfIjZ4OzW5dJOobMUBYhZ/H18HoFPeLyi2p+7/ytJ5HAKLkQmtjYrBbP Fq79eqGYUuYdNGC7KAWwT6FNBriBJI2t6HF+Mtey2xKiH6D0hBrWwdmnBSFEnu/R8lAt VglMG8cHAsPVdhPCs2kQMd8cPA6kAgObkZDs1vDtfMsZgtKu+fpUFYLGiyKykHsW410r AohQ== X-Gm-Message-State: AMke39knLlOVHF978XwzOVdqr9jQT9IGJKNQ0mflBWeR7cI+knvuNunDkPea7GTavU7Ixw== X-Received: by 10.107.17.70 with SMTP id z67mr4772999ioi.37.1488315117986; Tue, 28 Feb 2017 12:51:57 -0800 (PST) Received: from [192.168.0.6] (d27-96-48-76.nap.wideopenwest.com. [96.27.76.48]) by smtp.gmail.com with ESMTPSA id 62sm7071105itl.1.2017.02.28.12.51.57 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Feb 2017 12:51:57 -0800 (PST) Subject: Re: [ANNOUNCEMENT] Updated: dash-0.5.9.1-1 To: cygwin@cygwin.com References: <20170227231247.GA19383@dimstar.local.net> <58b4c978.5443ca0a.5c0e.03d7@mx.google.com> From: cyg Simple Message-ID: <10fdf67b-9960-7888-ad72-b67b1f2d95a9@gmail.com> Date: Tue, 28 Feb 2017 20:52:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: <58b4c978.5443ca0a.5c0e.03d7@mx.google.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2017-02/txt/msg00355.txt.bz2 On 2/27/2017 7:51 PM, Steven Penny wrote: > On Tue, 28 Feb 2017 10:12:47, Duncan Roe wrote: >> "we" being you and who else? >> /bin/sh has been bash for a long time and I would prefer it stays that >> way. > > “That’s the way it’s always been done” is not a good reason to keep doing > something. /bin/sh has been defined for 20 years, and it is not Bash: > > http://pubs.opengroup.org/onlinepubs/7908799/xcu/sh.html > > If you want to write a Bash script, you should be using #!/bin/bash, not > #!/bin/sh. If we are to continue using Bash, it should be for a good > reason, > like the one Eric presented, not just because you want to save 2 > characters on > your shebang line. > Ironic that *you* should make the same argument for using #!/bin/bash as I've made to you about using #!/bin/dash. If you want to ensure that #!/bin/sh is a certain resemblance of a shell then you must test for it and take other actions if not. You cannot portably rely on /bin/sh having certain qualities but you know that already. Your argument is that dash is "more" POSIX conforming than bash as sh and faster because its footprint is smaller. Should we change, maybe give it a test before the next release. It really doesn't matter other than the work required to make it so and the work required to help those who get surprised. But that doesn't mean you should expect /bin/sh to be dash. The idea is only sound because it uses less resources and when we're talking about Windows a little resource makes a big difference. -- cyg Simple -- 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