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:from:reply-to:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=RQr1fEPRhwWtJ3DS 9HPTH46oXQuzGFyzDZEGtbR5BwaUdRyU4aZFcTPm87+hBJ/fAHSL6WgcyuQMDBsr yJUCjb1ovDl9zmswfoeCnVq9f4ProcpsX2pQ151welMllnKPaZQMehx085wTeCz9 PIzo187AOGNIkvJj5KQt8XXfdBw= 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:from:reply-to:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=MzkkbZ26JU4virDrScyZWO rEys0=; b=Fw0PCXo4wXQFh35QKmngReM1q97VsCi6xbAaMKKFXHiOAG6ZkX7USI 9LX6qBvDpWvNggL1uJ9diwLtTQG+pN0RBn+SOWNbqu4TX0Yf3iZBTOYul3pH4wqi MgywfoO00FWHCuvxwJrNV4bEbQb5aId5w8pXMNQ1b1xcj2IPt9sas= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=Hx-spam-relays-external:64.59.134.13, H*RU:64.59.134.13, H*R:D*ca, 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=ayTFCx7bqHTC72v2iKsA:9 a=QEXdDO2ut3YA:10 Subject: Re: [ANNOUNCEMENT] Updated: dash-0.5.9.1-1 References: <74aa0c8b-c268-dbd4-88b7-cda78186f321 AT SystematicSw DOT ab DOT ca> <58af73f6 DOT 57a8ca0a DOT 9eea8 DOT c76d AT mx DOT google DOT com> To: cygwin AT cygwin DOT com From: Brian Inglis Reply-To: Brian DOT Inglis AT SystematicSw DOT ab DOT ca Message-ID: Date: Fri, 24 Feb 2017 12:18:56 -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: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4wfHUgJ5fWcUnYXiYoMt/dc5a8MdQPHwunKdaIHHJDY4CZoeWr06WyH4yafXOpJ0hOAekfiNRDSPVFlKX9ZROAyrZPDaRC/NXjIbteoESAbLJ878du3lFW sW7XfHdsAtOtQ73wcDdQNhX8Ggn6Hoy2pYFeyKFzCvEcEcUa3mxD8Id1/2bU9dI6OMT1G8/a65PG2A== X-IsSubscribed: yes On 2017-02-24 07:32, Eric Blake wrote: > On 02/23/2017 05:44 PM, Steven Penny wrote: >> On Thu, 23 Feb 2017 12:59:27, Brian Inglis wrote: >>> Some people may continue to need or prefer using bash in POSIX >>> mode. >> You might know this already, but "Bash in POSIX mode" is not quite >> POSIX. For example, arrays are not defined by POSIX: > You may not know this, but POSIX doesn't forbid extensions. Bash in > POSIX mode does NOT cripple all extensions, merely those that are > incompatible with POSIX. That's why so many people end up writing > #!/bin/sh scripts with bashisms, then get surprised when they break > on a different shell. > If you want a STRICT shell, Debian's posh is even better than dash > at ferreting out use of non-portable extensions. For those interested, Cygwin packages are available for posh, a "stripped down version of pdksh", and checkbashisms, a Perl script for flagging any "shell feature that is not required to be supported by POSIX". Neither dash nor posh have dependencies other than cygwin1.dll, but posh is not exactly lightweight at 598KB compared to dash at 99KB. While posh may be good for checking scripts when installed as /bin/sh, dash is a better choice for running scripts as a production /bin/sh. -- 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