delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/02/25/11:46:19

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:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=o4XJXDxBx+s79htI
4xDJiZva/ZHvJReQFz3v85Doelysv+FHt4qWbZ/FeDOisUSwLWJGhfFPKMYm1iSa
hh7UDlf31Mt5UrqMEptJ7gfklFFeBFY/Cvwqxyb3Nobe8q1PVj3c8o2cPXILFWi/
eX3Vk5YT7n2joNdviwp+lJYwHo8=
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=9Kx6VZCSpaiNkrFreD3rMF
oOWD4=; b=XwYlsZuGHdw2X8KZBHrXa4evou0QRgudcHwQuV3ZfxRNT4t6NGg6mP
OvCbbTCouDf2lSfv6zhkBPqyTwwLsoK5zl9LqoOTcYV+RPBFkTiR6lKfU90bwjeq
0RIyZ1gVP7fIRuB2qvF+/Ww+2Y/SS5F4gdjgg1L9u8fOf1G+yqKqM=
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.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=worldwide
X-HELO: mail-io0-f195.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=hqtyTQV06g0fivhLacVyMcIZgb2Av4m20nsjOAS9w7g=; b=cC/f125dSVUwcKzNXWUd+PwOwpTCqRAQ+4FJLulxCOW9bVyFmNru9r1ztkuMaj2xLL R8fu7lh9HHNS704kPCnOmZDX1pIkTPmWYY6/G+ee+W5TwaaavSdIElMjxk5eTc+AnLVE ZL7lfLaMqnM4/iqvR1K8E4RgoiHzrIGfY1b1A1MyQO2scHoD8r8bwauF6jUvgmi+sE9x JtmyZraLzo9MgennZ9ILnGUjdWLEVom679hM56wq7QL3OnGps+DrAAcPjkhd0Ht9MlEh 4H2DYtPqlZIxVG9RbuMM91LY/t5KJMweEKECF9T1vwteJqKCVZldkVs1FrMHCEs0nJRJ 5hYw==
X-Gm-Message-State: AMke39lveyMwTu1NgDL+xBKlI9fBVrndrJGVuYUYrXP78K/Mz2PyTvGkaQETZxTUxWlI2w==
X-Received: by 10.107.8.90 with SMTP id 87mr3599454ioi.111.1488041162755; Sat, 25 Feb 2017 08:46:02 -0800 (PST)
Subject: Re: [ANNOUNCEMENT] Updated: dash-0.5.9.1-1
To: cygwin AT cygwin DOT com
References: <1835159156 DOT 20170223203808 AT yandex DOT ru> <58af3c19 DOT 01309d0a DOT 781cc DOT afce AT mx DOT google DOT com>
From: cyg Simple <cygsimple AT gmail DOT com>
Message-ID: <ed828046-15d2-6cbe-4e48-c3d72839572e@gmail.com>
Date: Sat, 25 Feb 2017 11:46:08 -0500
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-IsSubscribed: yes

On 2/23/2017 2:46 PM, 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.

If *your* script has a dependency to run using *dash* instead of *sh*
then you _must_ use #!/bin/dash anyway.  And what I _*I*_ don't want
dash as /bin/sh?  You see not everyone in the community will agree.  You
can make the suggestion to those using your script to do so otherwise
but forcing dash as /bin/sh worldwide isn't something you can actually do.

-- 
cyg Simple

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