delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/03/04/13:52:34

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-3.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS,UNPARSEABLE_RELAY
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Eric Blake <ebb9 AT byu DOT net>
Subject: Re: proposing a new package: dash (shell)
Date: Wed, 4 Mar 2009 18:52:13 +0000 (UTC)
Lines: 44
Message-ID: <loom.20090304T183157-580@post.gmane.org>
References: <gomh5d$k41$2 AT ger DOT gmane DOT org>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
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

Akakima <akakima33 <at> gmail.com> writes:

> 
> I would like to see dash (a POSIX-compliant implementation of sh) to 

Not quite POSIX-compliant yet; dash lacks support for LINENO, which is a HUGE 
drawback for what autoconf expects (basically, configure scripts generated by 
autoconf first attempt to find a shell that supports POSIX-mandated LINENO, 
because otherwise it has to run sed to fake LINENO and then re-exec itself, 
which eats precious time).  But other than that, you are correct that dash is 
generally a decent shell, and in many cases faster than bash (it uses some nice 
optimizations to avoid forks).

> be distributed with Cygwin. I am also willing to become the official 
> maintainer if no one else want to do the job.

Yes, a port of dash would be welcome.

> I have done some minimal testing. dash can run its own configure script. In
> order to be sure that dash.exe was the only shell use by cygwin, i copied
> dash.exe over sh.exe and bash.exe.

Are you sure dash was used?  Like I said, configure scripts generated by 
autoconf prefer a shell that supports LINENO, and that means you might have 
ended up with zsh or pdksh doing the work instead of dash.  To guarantee you 
used dash, you can use:

CONFIG_SHELL=path/to/dash path/to/dash ./configure

> 
> I have read somewhere that dash becamed recently the official shell of 
> Ubuntu.

I'm not ready to change the default /bin/sh; I think we'd still like to 
keep /bin/sh as bash for the time being.  But that doesn't stop users from 
installing dash instead of bash as /bin/sh.  And I would particularly welcome a 
pre-built dash, as I already test with it as part of maintaining upstream 
autoconf.

-- 
Eric Blake
volunteer cygwin bash maintainer, upstream autoconf maintainer




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