From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 104605 invoked by alias); 23 Feb 2017 19:46:37 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 104589 invoked by uid 89); 23 Feb 2017 19:46:36 -0000 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 Received: from mail-oi0-f66.google.com (HELO mail-oi0-f66.google.com) (209.85.218.66) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 23 Feb 2017 19:46:35 +0000 Received: by mail-oi0-f66.google.com with SMTP id l128so91580oia.3 for ; Thu, 23 Feb 2017 11:46:35 -0800 (PST) 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) Received: from RG4 ([2605:6000:9fc0:56:811:343f:f904:d318]) by smtp.gmail.com with ESMTPSA id d1sm1959066otc.4.2017.02.23.11.46.33 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Feb 2017 11:46:33 -0800 (PST) Message-ID: <58af3c19.01309d0a.781cc.afce@mx.google.com> Date: Thu, 23 Feb 2017 19:46:00 -0000 From: Steven Penny X-Google-Original-From: Steven Penny To: cygwin@cygwin.com References: <1835159156.20170223203808@yandex.ru> Subject: Re: [ANNOUNCEMENT] Updated: dash-0.5.9.1-1 Content-Type: text/plain; charset=utf8; format=flowed User-Agent: Tryst/2.0.1 (github.com/svnpenn/tryst) X-SW-Source: 2017-02/txt/msg00292.txt.bz2 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