delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/06/12/22:41:21

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Date: Sun, 12 Jun 2005 22:41:08 -0400
From: Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Making /bin/sh == bash. Has the time come?
Message-ID: <20050613024108.GA3739@trixie.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
References: <20050613021516 DOT 7B9E913C237 AT cgf DOT cx>
Mime-Version: 1.0
In-Reply-To: <20050613021516.7B9E913C237@cgf.cx>
User-Agent: Mutt/1.5.8i

On Sun, Jun 12, 2005 at 09:15:58PM -0500, Gary R. Van Sickle wrote:
>- "transfigure" is a dead-simple shell script that just calls ./configure
>with a slew of config options.
>- Everything's faster today (real anyway), probably due to the following:
>  - I'm probably using a different snapshot.
>  - I cvs updated my wxWidgets source just before running the tests.
>  - In the previous tests I wasn't particularly careful to leave the machine
>alone (did some web browsing, email etc).  This time I made sure to do
>nothing during the tests.
>- Percentage differences between configuring with bash vs. ash:
>  real:   ~+17%
>  user:   ~+1%
>  system: ~+25%
>- Apparently the only way to get ash used at all is by explicitly "export
>CONFIG_SHELL=/bin/sh"ing.  In particular note the third ash test, where
>/bin/sh is ash, and yet the configure times appear to indicate that bash is
>in fact being used.
>
>Ergo:
>- Yes, sh is still faster than bash.
>- It's not a large enough difference that I would care about it.  Others'
>mileage may perhaps vary.
>- It's unclear to me that it matters in any case, since apparently
>configures have been using bash anyway.
>- It's unclear to me then where the "sh is ash not bash" issues are actually
>coming from, if not from run-of-the-mill configures.

Now I'm confused, too.  I thought the complaints were coming from people
who used configure.  Maybe they were coming from old configure scripts
or possibly from makefiles.

>- If it isn't configures, does anybody actually care about the semi-minor
>slowdown since it would eliminate "ash != bash" issues?
>
>Hence:
>- I still say /bin/sh == bash is the way to go.

I agree.  I hope that Eric Blake will also agree and eventually release
a new version of bash where /bin/sh.exe is a hardlink (?) or copy
(sigh).

The only thing I'm not entirely sure about is whether we should just nuke
ash from the distribution or not.  It seems like if we didn't we would need
a new release of ash with /bin/sh.exe replaced with /bin/ash.exe.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019