www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/07/09/09:25:47

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SPF_SOFTFAIL
X-Spam-Check-By: sourceware.org
Message-ID: <4A55F0B6.5050200@byu.net>
Date: Thu, 09 Jul 2009 07:29:26 -0600
From: Eric Blake <ebb9 AT byu DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.22) Gecko/20090605 Thunderbird/2.0.0.22 Mnenhy/0.7.6.666
MIME-Version: 1.0
To: cygwin AT cygwin DOT com, Edward Lam <edward AT sidefx DOT com>
Subject: Re: [ANNOUNCEMENT] [1.7] New package: dash-0.5.5.1-1
References: <announce DOT 4A55DD6C DOT 8030203 AT byu DOT net> <4A55ECD8 DOT 4060001 AT sidefx DOT com>
In-Reply-To: <4A55ECD8.4060001@sidefx.com>
X-IsSubscribed: yes
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

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Edward Lam on 7/9/2009 7:12 AM:
> Eric Blake wrote:
>> So for now, there are no plans of replacing /bin/sh with dash.
> 
> Incidentally, I copy ash.exe over to sh.exe every time for performance.
> AFAICT, /bin/sh defaulted to bash (from ash) back in the bash 3.0 series
> to be more "similar to Linux distributions". It took me quite some head
> scratching at the time to determine why my "make clean" would take ~2
> times slower.

ash is not POSIX-compliant.  It may be fast, but it is so old and broken
that it caused more problems than the apparent speedups that it might
offer.  dash is a different story - it aims for POSIX compliance, so we
might reach the stage where dash is reliable enough to use instead of bash
for /bin/sh (particularly since I manage both packages - it would be a
very easy transition for me to make).  But that day won't even be on my
radar until after dash supports LINENO, since making the switch now would
just slow down configure scripts as they waste time finding out how to run
bash instead of /bin/sh to get LINENO support.

> 
> Changing /bin/sh to dash of course else will now probably cause the
> headaches that Ubuntu users have experienced leading to proposals to
> change /bin/sh back to bash:
>     http://brainstorm.ubuntu.com/idea/2225/

Yes, there are a lot of bash-isms out there.  And several years ago, when
we made the switch of /bin/sh being bash, it was because bash was the most
popular Linux-provided /bin/sh.  But these days, you are right that more
and more distros are starting to provide dash instead of bash as /bin/sh,
so I have no objections to an eventual switch on that ground.

And if you really want a fun time at flushing out non-portable shell
constructs, use posh.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9 AT byu DOT net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkpV8LYACgkQ84KuGfSFAYBmUwCeN+lIfDyHgUBGFUSYC04rwakx
I24An300gPxN+Wq1qz4DXWQIZDhl55LX
=T1S4
-----END PGP SIGNATURE-----

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