Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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/