From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20773 invoked by alias); 25 Feb 2017 17:09:00 -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 20739 invoked by uid 89); 25 Feb 2017 17:08:58 -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*MI:sk:ed82804, 9699919799, pubs.opengroup.org, pubsopengrouporg X-HELO: mail-oi0-f54.google.com Received: from mail-oi0-f54.google.com (HELO mail-oi0-f54.google.com) (209.85.218.54) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 25 Feb 2017 17:08:57 +0000 Received: by mail-oi0-f54.google.com with SMTP id 62so23469510oih.2 for ; Sat, 25 Feb 2017 09:08:57 -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:subject:to:references :user-agent; bh=k+qIv3aiyyh6GoTx4WodNhhQigYerF+KBhszPxGsVWY=; b=SZ3oL1Ej4eJsajKLH5s1tVSzBYMrVLsUwgO5xVuW6hkI7opddTCl3yl3abP+siyBRa cLQamcrXC5qCFm1/jSZ4nTWdgbLy8I8oHMBDkec+LrzC0+PhZL1IY4dmZ0caCDoKFxcG hRGSwhGjD1grkLbfsJTrK445A+2uErz8/dUEXLkV5IAZ3xgryqm3lfa0m6ISdyQfJqIg 2fDv4YOT79Xpji9F8GaHbrDMwroSXIpu8EcqRN/F/gpkY1/zuRXhDGU3gSECTO1z4FDN UCY5tFnxGvHMlh4NUghAPtRpvr3iGzciZp9ABdy6FMFbZNgDl4NuibejJV43lo+/9EvS OsfQ== X-Gm-Message-State: AMke39kdusK+s6WDtY1SeAks4glZYmoaFQxPhAG5Hi0+R7RVJdBskjKzdPEI7IE2zqUn6g== X-Received: by 10.202.194.137 with SMTP id s131mr3900571oif.140.1488042535843; Sat, 25 Feb 2017 09:08:55 -0800 (PST) Received: from T1n ([2605:6000:9fc0:56:811:343f:f904:d318]) by smtp.gmail.com with ESMTPSA id 205sm4216228oid.4.2017.02.25.09.08.55 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 25 Feb 2017 09:08:55 -0800 (PST) Message-ID: <58b1ba27.d603ca0a.b7fcf.8e60@mx.google.com> Date: Sat, 25 Feb 2017 17:09:00 -0000 From: Steven Penny X-Google-Original-From: Steven Penny Subject: Re: [ANNOUNCEMENT] Updated: dash-0.5.9.1-1 To: cygwin@cygwin.com References: Content-Type: text/plain; charset=utf8; format=flowed User-Agent: Tryst/2.0.1 (github.com/svnpenn/tryst) X-SW-Source: 2017-02/txt/msg00320.txt.bz2 On Sat, 25 Feb 2017 11:46:08, cyg Simple wrote: > If *your* script has a dependency to run using *dash* instead of *sh* > then you _must_ use #!/bin/dash anyway. I think you have a fundamental misunderstanding of what Dash is. Dash is a minimal shell, similar to the "sh" defined by POSIX: http://pubs.opengroup.org/onlinepubs/9699919799/utilities/sh.html So saying "a dependency to run using *dash*" makes about as much sense as saying "Cygwin has a dependency to run using Cygwin". > And what I _*I*_ don't want dash as /bin/sh? You see not everyone in the > community will agree. With respect to the community, yes of course you get a say. If the community doesn’t agree on this we will continue to use Bash. However you do not get a say with respect to the standard. The POSIX standard specified that /bin/sh is the shell I have linked above. Bash is a superset of that, so by definition those extra features are not defined or guaranteed to exist. When writing /bin/sh scripts, you should be assuming the users /bin/sh only has those features defined by POSIX. Example: #!/bin/bash -> script that follows might have Bashisms #!/bin/dash -> script that follows might have Dashisms (echo -n, local) #!/bin/sh -> script that follows should be a POSIX script > 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. Yes we certainly can. Debian and Ubuntu have already done this. -- 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