delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/02/23/14:59:55

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:subject:references:to:reply-to:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=Yh63IJWw+xv+YGUX
ZO9H0MQJcmrXOqS2VrgPjizrEh53n+QnEazF8dtR4FOHK+q1/sFHSSjwxt4xziTf
twsYmlwjd9WVwnJAoskKwvMkWrisyQVsPkqwVuDBmOHz/JFSmVHEjMf9qjDNtHRY
YkUjuOTf3lT7Ke+zCaTVwPY4wQI=
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:references:to:reply-to:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=2EF5jsJpYsP5ntSeTZO+iK
OxyNo=; b=qStEe8PBqeiWiplzAnrRHc+dYXgi5y5UjUqPnO+dbo7bQAmkuZCkZR
NjOnPaihgU+wC3PTRs9cvKK2l7MU+PUwnYvPnbJzG99gI1NGMtLUuIIjBbJDO0kl
kl+h0k66LaeJzIVk2Bhsh3SSsIq3yzZEcl0LUs3pMY+NL5OSdvmyA=
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=1.1 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=Brian, H*R:D*ca, Calgary, calgary
X-HELO: smtp-out-no.shaw.ca
X-Authority-Analysis: v=2.2 cv=BLbDlBYG c=1 sm=1 tr=0 a=WqCeCkldcEjBO3QZneQsCg==:117 a=WqCeCkldcEjBO3QZneQsCg==:17 a=eIhxMilvRf8A:10 a=IkcTkHD0fZMA:10 a=12xGAj9F-e04C4xKB_AA:9 a=QEXdDO2ut3YA:10
Subject: Re: [ANNOUNCEMENT] Updated: dash-0.5.9.1-1
References: <1835159156 DOT 20170223203808 AT yandex DOT ru> <58af3c19 DOT 01309d0a DOT 781cc DOT afce AT mx DOT google DOT com>
To: cygwin AT cygwin DOT com
Reply-To: Brian DOT Inglis AT SystematicSw DOT ab DOT ca
From: Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca>
Message-ID: <74aa0c8b-c268-dbd4-88b7-cda78186f321@SystematicSw.ab.ca>
Date: Thu, 23 Feb 2017 12:59:27 -0700
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1
MIME-Version: 1.0
In-Reply-To: <58af3c19.01309d0a.781cc.afce@mx.google.com>
X-CMAE-Envelope: MS4wfJNwQGAPnip/rcSa44R8SOdtXFVKNqk/aFS3pl0IvBhXy6//QF2giAVTkod/P5hPM3xvvxp4oJIOW+42XZmGNemrSeMBCOq/XEggRQTWP24ZYEizrb5w ecLNPgXcjUrylF0zA/4Pa7GTvoazdbty621hW6RqRge0yghEtckLRlZndK2UHnYDsLiGS+IKuOJRgg==
X-IsSubscribed: yes

On 2017-02-23 12:46, Steven Penny wrote:
> On Thu, 23 Feb 2017 20:38:08, Andrey Repin wrote:
>> $ cat /etc/postinstall/zp_dash-as-bin-sh.dash
>> #!/bin/dash
> 
>> test ! -h /bin/sh.exe && {
>>   _f="$(mktemp /bin/sh.XXXXXX)"
>>   {
>>     mv /bin/sh.exe "$_f"
>>     ln -s /bin/dash.exe /bin/sh.exe
>>   } || mv "$_f" /bin/sh.exe
>>   rm "$_f"
>> }
>> exit 0
> 
> This is a bad idea.
> 
> If script succeeds, then yes sh is now a symlink to Dash, but only
> for my system. I still have to use #!/bin/dash with my scripts,
> because otherwise people with Bash -> sh will not get the speed
> boost. The whole point of this thread is that it should be changed
> for everyone.

And should be done using update_alternatives so it and associated 
man pages can easily be changed if anyone suffers breakage.
Some people may continue to need or prefer using bash in POSIX mode.

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

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