From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 81701 invoked by alias); 23 Feb 2017 20:41:57 -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 81671 invoked by uid 89); 23 Feb 2017 20:41:55 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=Brian, inglis, Inglis, breakage X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 23 Feb 2017 20:41:54 +0000 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6A26E61D32 for ; Thu, 23 Feb 2017 20:41:54 +0000 (UTC) Received: from [10.10.122.148] (ovpn-122-148.rdu2.redhat.com [10.10.122.148] (may be forged)) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id v1NKfrsF029795 for ; Thu, 23 Feb 2017 15:41:54 -0500 Subject: Re: [ANNOUNCEMENT] Updated: dash-0.5.9.1-1 To: cygwin@cygwin.com References: <1835159156.20170223203808@yandex.ru> <58af3c19.01309d0a.781cc.afce@mx.google.com> <74aa0c8b-c268-dbd4-88b7-cda78186f321@SystematicSw.ab.ca> From: Eric Blake Openpgp: url=http://people.redhat.com/eblake/eblake.gpg Message-ID: Date: Thu, 23 Feb 2017 20:41:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <74aa0c8b-c268-dbd4-88b7-cda78186f321@SystematicSw.ab.ca> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="fX28osa257oBbkKJ4CTNqxdMEwmckrivD" X-IsSubscribed: yes X-SW-Source: 2017-02/txt/msg00295.txt.bz2 --fX28osa257oBbkKJ4CTNqxdMEwmckrivD Content-Type: multipart/mixed; boundary="BXhmsRqjdllJ1rreeeBoQNB1biiO9L5U6"; protected-headers="v1" From: Eric Blake To: cygwin@cygwin.com Message-ID: Subject: Re: [ANNOUNCEMENT] Updated: dash-0.5.9.1-1 References: <1835159156.20170223203808@yandex.ru> <58af3c19.01309d0a.781cc.afce@mx.google.com> <74aa0c8b-c268-dbd4-88b7-cda78186f321@SystematicSw.ab.ca> In-Reply-To: <74aa0c8b-c268-dbd4-88b7-cda78186f321@SystematicSw.ab.ca> --BXhmsRqjdllJ1rreeeBoQNB1biiO9L5U6 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-length: 1593 On 02/23/2017 01:59 PM, Brian Inglis wrote: >> If script succeeds, then yes sh is now a symlink to Dash, but only >> for my system. I still have to use #!/bin/dash with my scripts, >> because otherwise people with Bash -> sh will not get the speed >> boost. The whole point of this thread is that it should be changed >> for everyone. >=20 > And should be done using update_alternatives so it and associated=20 > man pages can easily be changed if anyone suffers breakage. > Some people may continue to need or prefer using bash in POSIX mode. Or more likely, many people likely have pre-existing scripts wrongly written as #!/bin/sh but which use bash-ism rather than portable POSIX-specified shell (if it is portable, then bash vs. dash executing the script shouldn't matter - but as Debian found out when they switched to dash, there are a lot of non-portable scripts). On the other hand, Debian has already fixed much of the pre-packaged badness out there and pushed fixes upstream where feasible, so these days it's not as hairy to switch as when Debian first did it. But part of me is still reluctant to make the switch as long as Fedora still favors bash over dash. One problem with using update_alternatives: the alternatives system relies on symlinks, but Windows is not so smart about executing through symlinks; are there people that will have a broken setup if /bin/sh is a symlink rather than an actual executable (hard links are fine, but symlinks is where I worry). --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --BXhmsRqjdllJ1rreeeBoQNB1biiO9L5U6-- --fX28osa257oBbkKJ4CTNqxdMEwmckrivD Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" Content-length: 604 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJYr0kQAAoJEKeha0olJ0NqJooH+gKCJCl+c4pdFiOpiqh6yZBH AAGLEdoXgLxtw8ENWGbl0b2ZYIDYTVYK9b/bdLFEjgTD0RbM2kWd1jHCE/7nr9Tq eXPfwcdD9r+SkWgofY9koR2TFPgv1wQtZTHuhardf0vs2y4QqvZJe6GETUu/FhQb 8+9+mOXMDXaVtDt2mZ34cEgXhphPRYBjwZxgg0Znn1El73nl+UScYghUzKF/zfND 1SsX5rshsY9zgcoxkjIm4Gb1cclciJ/mDsS5Hm7pwZCLixbDxKGl8bTAPYoynPSK 1GoRF9Hrq6YjLAuWkt9tkVwHuvwVAupU1n6mjc4neoogwSwnSUE55/mn3tRZ9LQ= =ny3k -----END PGP SIGNATURE----- --fX28osa257oBbkKJ4CTNqxdMEwmckrivD--