delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/04/01/17:05:40

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:date:from:reply-to:message-id:to:subject
:mime-version:content-type:content-transfer-encoding; q=dns; s=
default; b=eY/MgaGzjlJ5NQIAnxYYPVamLa+qIb2GroT2a0Curx5FrWJKPK3sM
E/cuzRw7x4GQ0NNx688ZbQd9ZJKkaeytpw9gYKeEXvY0ytG3m+l6gBG72eZma751
nohvwELY7N4I9CKSzs8i1rUFit62i/QY9apykGo2S73LON6C98I2Vo=
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:date:from:reply-to:message-id:to:subject
:mime-version:content-type:content-transfer-encoding; s=default;
bh=RoSDBfvAGPcumRd20AJ3pgm3WKg=; b=SYo3WdiA1pRw17F42/8twblJQ6hV
1d2KM+2xEVLawPfUlNYjA2SJnNI/0VxHieDgiurM84tNDor6j/JufGUigPGzQpQN
692JkH4kCjibqpC5qqg9fCLrL1wdQT/82QZjqPcM/qfC0tXAzTZpOlqrCrIoN4U0
mgbHX6melHDTWHc=
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=4.3 required=5.0 tests=AWL,BAYES_60,FREEMAIL_FROM,KAM_THEBAT,MIME_BASE64_BLANKS,SPF_SOFTFAIL autolearn=no version=3.3.2 spammy=H*UA:Bat!, H*x:Bat!, H*r:sk:postmas, H*r:4.80.1
X-HELO: smtp.ht-systems.ru
Date: Fri, 1 Apr 2016 23:53:08 +0300
From: Andrey Repin <anrdaemon AT yandex DOT ru>
Reply-To: cygwin AT cygwin DOT com
Message-ID: <838469265.20160401235308@yandex.ru>
To: All <cygwin AT cygwin DOT com>
Subject: How to install a custom permanent postinstall handler?
MIME-Version: 1.0
X-IsSubscribed: yes
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id u31L5Xbl011320

Greetings, All!

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.
So… How would I go about creating a handler that would restore the parity?
Will making a script /etc/postinstall be enough, or some additional magic is
necessary?


-- 
With best regards,
Andrey Repin
Friday, April 1, 2016 23:48:54

Sorry for my terrible english...

- Raw text -


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