delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/03/04/15:06:12

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: "Akakima" <akakima33 AT gmail DOT com>
Subject: Re: proposing a new package: dash (shell)
Date: Wed, 4 Mar 2009 15:05:40 -0500
Lines: 69
Message-ID: <gommup$apv$1@ger.gmane.org>
References: <gomh5d$k41$2 AT ger DOT gmane DOT org> <loom DOT 20090304T183157-580 AT post DOT gmane DOT org>
Reply-To: "Akakima" <akakima33 AT gmail DOT com>
Mime-Version: 1.0
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

"Eric Blake" <ebb9 AT byu DOT net> wrote:

> Yes, a port of dash would be welcome.

Great. I will do it.

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

Pretty sure. I dont have pdksh installed. I have bash and ash. During 
my first test, i watched the task manager. I saw many sh.exe process. 
So i copied dash.exe over sh.exe. Second test, i saw many bash.exe 
process. Third time,
i replaced all shell (ash.exe, bash.exe, sh.exe, zsh.exe with 
dash.exe. So even if the task list show a bash.exe process, it is dash 
code executing. My goal was to verifiy that the code is ok. Now this 
does not guaranty that dash is called. In fact, even if i start the 
build under dash, some other shell get ran.

I would like to publish dash as is for now. If i am able to do the 
job, may be i can add LINENO support to dash (i have no idea what the 
difficulties are), or suggest to the author/actual maintainer to do 
it.

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

Ok. Will try.

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

I am not proposing that dash become the default shell. I would like to 
use it on cygwin, even if it's not really POSIX compliant and there 
are some problems (see: https://wiki.ubuntu.com/DashAsBinSh ).
It is somewhat faster and is also easier to hack for a beginner and 
can still be useful.

>  And I would particularly welcome a
> pre-built dash, as I already test with it as part of maintaining 
> upstream
> autoconf.

built on WinXP Pro, SP2, (32 bits)
Do you want a copy of the dash.exe i have built ?
stripped or not ?
with cygwin 1.5 or 1.7 ?

I have made no modification to the original files. Just ran
./configure
make
to get a running dash.



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