delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/04/03/02:24:52

X-Recipient: archive-cygwin AT delorie DOT 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:from:to:subject:references:date:in-reply-to
:message-id:mime-version:content-type; q=dns; s=default; b=NTJ/2
IoCYeH+oY1pLz7Y6SY9QXeak88X2NcapItdEd4Zu8YMn9UA7M4CoHzohwk651Rb8
lDuw2OE7YCyd/G6FHwCyoITCyLdLzw2oqjsK3t6QZF1HUVdYz43t1o5c38GbJD8P
ZJY+FuUgQDHOPycXfNNWQ9MfIDuWyQfY9lp49U=
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:from:to:subject:references:date:in-reply-to
:message-id:mime-version:content-type; s=default; bh=f7YLm/vg0vu
ywSqhclGMsFtW1bU=; b=OcckZCHI9ijH+Q4Mo3C0i3PDmWCqTvb8uGv9mFQSjLm
e6hXey6vB53Z2vMcqA8qTbrvWo+9pYz9n44iw6HcmtP2iUP7l5Md6r3YtWOTnCeZ
adaQg8JoivPBesjXtoaiIwWXcBiOt95pDk06VMBktz9gV2QsMCkeN+OTIo1/hPVc
=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=*proper*, sk:alterna, shebang, H*i:sk:5700975
X-HELO: mail-in-12.arcor-online.net
X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-17.arcor-online.net 3qd4ny5pFPzYtj
From: Achim Gratz <Stromeko AT nexgo DOT de>
To: cygwin AT cygwin DOT com
Subject: Re: How to install a custom permanent postinstall handler?
References: <838469265 DOT 20160401235308 AT yandex DOT ru> <87a8lcicxg DOT fsf AT Rainer DOT invalid> <5700975A DOT 3070002 AT cygwin DOT com>
Date: Sun, 03 Apr 2016 08:24:02 +0200
In-Reply-To: <5700975A.3070002@cygwin.com> (Yaakov Selkowitz's message of "Sat, 2 Apr 2016 23:08:58 -0500")
Message-ID: <87y48vqkfx.fsf@Rainer.invalid>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.91 (gnu/linux)
MIME-Version: 1.0

Yaakov Selkowitz writes:
> I am not in favour of /bin/sh being alternatives-able.

I'd posit that it should not be bash then and somwone else might
reasonably want a different /bin/sh, perhaps even bash.  Which is
exactly why the alternatives system exists.

> The *proper* course of action is to use the shebang for the script
> interpreter you require, i.e. /bin/dash.

It's perfectly OK to use /bin/sh (I'd even recommend it) if all you want
is a POSIX shell.  You shouldn't be trying to use local then, but that's
another story (*).

(*) http://stackoverflow.com/questions/18597697/posix-compliant-way-to-scope-variables-to-a-function-in-a-shell-script


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

SD adaptations for Waldorf Q V3.00R3 and Q+ V3.54R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019