delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/01/29/14:48:11

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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: Wed, 29 Jan 2003 13:47:52 -0600
From: Dan Nelson <dnelson AT allantgroup DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Making zsh the default
Message-ID: <20030129194752.GS17299@dan.emsphone.com>
References: <b191h9$sij$1 AT main DOT gmane DOT org> <Pine DOT GSO DOT 4 DOT 44 DOT 0301291228210 DOT 24195-100000 AT slinky DOT cs DOT nyu DOT edu>
Mime-Version: 1.0
In-Reply-To: <Pine.GSO.4.44.0301291228210.24195-100000@slinky.cs.nyu.edu>
X-OS: FreeBSD 5.0-CURRENT
X-message-flag: Outlook Error
User-Agent: Mutt/1.5.3i

In the last episode (Jan 29), Igor Pechtchanski said:
> On Wed, 29 Jan 2003, Dan Nelson wrote:
> > Now all that's needed is a way to let us not install bash...  Why
> > does setup.exe insist on selecting the bash package?  I have to
> > remember to cycle it back to "Skip" every time.
> 
> Not a very good idea.  While cygwin itself does not depend on bash,
> some other applications (notably, sh-utils) do depend on it.  Some
> postinstall/preremove scripts might also require bash.  That's why
> you have to explicitly set it to "Skip" - it's selected because of a
> dependence.  If you choose to violate this dependence, you should be
> aware of the consequences.

sh-utils depends on bash for the nohup command, which runs just fine
with /sib/sh with the following change to the last line in the script
(copied from debian's nohup, which uses /bin/sh):

-exec -- "$@"
+exec "$@"

I would imagine most other bash dependencies are just like this;  bash
run as /bin/sh still allows bash syntax, and many Linux /bin/sh scripts
are really bash-specific.  It's easier to simply change the bang path
to /bin/bash and add a dependency than it is to fix the script.

-- 
	Dan Nelson
	dnelson AT allantgroup DOT com

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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