delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/06/10/20:36:48

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: Fri, 10 Jun 2005 20:36:41 -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: <20050611003641.GA1106@trixie.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
References: <20050610150729 DOT GA13181 AT trixie DOT casa DOT cgf DOT cx> <d8d7r1$ih6$1 AT sea DOT gmane DOT org>
Mime-Version: 1.0
In-Reply-To: <d8d7r1$ih6$1@sea.gmane.org>
User-Agent: Mutt/1.5.8i

On Fri, Jun 10, 2005 at 04:35:05PM -0700, Shankar Unni wrote:
>Christopher Faylor wrote:
>>So, in conversation with Corinna, I think that we're starting to lean
>>towards making /bin/sh == bash sometime soon.
>
>Excellent idea.  And it even seems to handle the automatic switch to
>POSIX mode correctly when called "sh.exe".
>
>Talking of which, how good is "pdksh" these days?
>
>Using your "exec-expr-in-a-loop" microbenchmark (without the builtin),
>it seems to be nearly as fast as "ash" (within a few percent), and
>almost 1.5x as fast as bash (I got 20, 23 and 38 seconds for ash, pdksh
>and bash respectively).  And for the "builtin" (using $((i+1))) loop,
>it's still nearly 4x as fast as bash (0.06 vs 0.23 seconds, or 0.25 vs
>1.1 seconds for 10000 iterations).
>
>Is it stable enough (and well-enough maintained) to be considered for
>being "the shell"?

No, I don't think we want to go there.  Most people these days expect
that /bin/sh is the same thing as bash.  That's the way it is on linux
and that is what we're trying to emulate.  Not doing that will just
trade the explanation of "Why doesn't this work?" from "It's because
/bin/sh is ash" to "It's because /bin/sh is pdksh."

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