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

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:message-id:date:from:to:references:subject
:content-type; q=dns; s=default; b=tdOoYmBW6p/Sr+1PaiuNTqrUDDkns
ysmIziG+k+wZtY2t32J1rCSr1rYYgHQrLMjzRBqxPPTlB35Emgw9Vk9OViQ7sIpl
0FLjNMlJa6yaVPgwVyTXhMSzbl1X0oB5fOKvSQOs6GlApzZTDxfxG7Z/9sV7p1eu
kZEXbvgiuME7Uc=
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:message-id:date:from:to:references:subject
:content-type; s=default; bh=1TqBgmjGTV62aA88XlS9I3rSU/o=; b=wF5
JwrT7qO5/thgB/eUdMxupewPhHcEqJnkjUzSDANL3ikqSU8z6xzxdtBPnQre7S5r
K5ZPGh23QAhdifaf9chbyjOffdKoAOZzDCT3Lh/m8clAUs+rHZnbf+zKZ53nvl2R
M2ZSJJrByxeXoyqZKDEPUg07J0hPjZfVBiATHpm4=
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.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=H*M:google
X-HELO: mail-oi0-f66.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:to:references:subject :user-agent; bh=UFswS/zXVpMlX33Q1nX3EqKYXNYng0NgWk3RqtZEqLg=; b=qwOHxJ6pvzZjGcr+vHpNM6YZTAeS1b+J6pdE5avyzlzwVjtDkeFCMNmoh2EZIhHU9n l7eDBo5fNOSbsH86mXQOcEWlTfOw0X9mQCh4yBfzUDE1e3PzxBBI+ApXZ6ZgzfxpRllC nKEbqVin0LG0D/SltgDKul6uXifHu0pZRCgUFdJ6hx1QhcCjPlbtuOCvK7TDW45o8wpo bM8vEb5pzqwWsweXnfAWg5PWzNX0A+sIcwnyD8WnLJTGjChbc3/6Ut5FfJcnuyp9MMQ9 d/2PDAsfLkQrOUK1QaviMcmrsjCSHcb0zKMMHaOBEDDXJ6Lz/m2VXoEAscppEmZWQe0a jzGA==
X-Gm-Message-State: AMke39lRoG1YGYJS4P9hDOPOHUQWhH9Bbyvfz9XEXcKKE6bbYImOtXg6Dih5NaY/DVwwOw==
X-Received: by 10.202.65.196 with SMTP id o187mr18642794oia.40.1487879193999; Thu, 23 Feb 2017 11:46:33 -0800 (PST)
Message-ID: <58af3c19.01309d0a.781cc.afce@mx.google.com>
Date: Thu, 23 Feb 2017 11:46:33 -0800 (PST)
From: Steven Penny <svnpenn AT gmail DOT com>
X-Google-Original-From: Steven Penny
To: cygwin AT cygwin DOT com
References: <1835159156 DOT 20170223203808 AT yandex DOT ru>
Subject: Re: [ANNOUNCEMENT] Updated: dash-0.5.9.1-1
User-Agent: Tryst/2.0.1 (github.com/svnpenn/tryst)

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.


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