X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:subject:to:references:from:message-id:date
	:mime-version:in-reply-to:content-type
	:content-transfer-encoding; q=dns; s=default; b=JfUsVtvIPlx1Wfl1
	/MjNiL6EZJNBnsfp+1MPTfW8sQcCqiUhVjOBBej+y+35NCFjvFCUZwQ0I9yeP2tq
	/PtbZlW1nUFSlNQvvQUyh95JyJ1EQ3WZg7XmLrEDMMUUzyx+ajzWabwK3h29Xguq
	0Zlb4UKMIRizvEX63nJNhMms9V4=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:subject:to:references:from:message-id:date
	:mime-version:in-reply-to:content-type
	:content-transfer-encoding; s=default; bh=H6Kl+YO+6cgzzmSJFBIBFu
	F6Dj8=; b=BRWHu+TeG5fwZGkGOqQLDmIvyjbp1gP5fPx8epa4fnv32ucRphzGwp
	/+r/zjknEgljNsPs75YyBhVWexZvWcsnDesfUeBPYJci9GW1FtCb9RZ/HzqhtQRR
	kKaY/RntSLt6Va/puMF0ggg9NLyUGvHFzYW6MsH7FyoWhniBoavWI=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,SPF_HELO_PASS autolearn=no version=3.3.2 spammy=H*Ad:U*yselkowitz, H*M:cygwin, H*F:U*yselkowitz
X-HELO: mx1.redhat.com
Subject: Re: How to install a custom permanent postinstall handler?
To: cygwin@cygwin.com
References: <838469265.20160401235308@yandex.ru> <87a8lcicxg.fsf@Rainer.invalid>
From: Yaakov Selkowitz <yselkowitz@cygwin.com>
Message-ID: <5700975A.3070002@cygwin.com>
Date: Sat, 2 Apr 2016 23:08:58 -0500
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0
MIME-Version: 1.0
In-Reply-To: <87a8lcicxg.fsf@Rainer.invalid>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

On 2016-04-02 04:21, Achim Gratz wrote:
> Andrey Repin writes:
>> Couple of my scripts rely on ASH/DASH functionality that is not present in
>> BASH. (Namely "local -".)
>> To amend that, I make a symlink /bin/sh = /bin/dash .
>> But every time bash update, it overwrite the link.
>
> I think the correct course of action would be to put /bin/sh under
> control of the alternatives system.

I am not in favour of /bin/sh being alternatives-able.  The *proper* 
course of action is to use the shebang for the script interpreter you 
require, i.e. /bin/dash.

-- 
Yaakov

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

