delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/01/07/19:19:17

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:subject:references
:content-type; q=dns; s=default; b=tbZNwvT/OMCsCND/AQMxyvbgsynAu
d43VqH3aYZzu/ogJ1RmPK11dJv8bNMhKfWEKka6apvf+vlpvMR9sXNxRfuFMcyK3
FhmeLixPiR8j2VoyRzLwB4c659MLGPsrBcVcvSpdOf26xfp5F2Fqr62j3PoWD2kx
EUAaUDdiXn3OqE=
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:subject:references
:content-type; s=default; bh=wiXPpueLMkx1/DSstE/Pva/UdyU=; b=pKF
9xk8kSMQg34l70O0Cs/CZAuUdX7lk/JzUFZMd25MKgnOGyfRLpT1qr+Z5588n0TR
Ii8PA/mq0ggCZgM+Qxm38XbpGOLxV9U76H744YWYGPoEn43RuplI/2e0eaBKxu7F
gZBotisvKavJ81DQ/PooC7Dsk8UqtggcohsVE2LE=
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-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.2 spammy=sk:operati, H*M:1c69fb81, H*M:google, reading
X-HELO: mail-ot1-f44.google.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:to:subject:references:user-agent; bh=OrMi1MPGmWf0/Z01BT4lBuA5g4bL9PP6nnq3BVUK0RI=; b=i2Gd4mHagHUm7ArFVXg5KWYCm3nqSrzpTCuy8H8CU0haR+cFq2dxdT0pK60+ZykUGI py6pvNQWwq/nT8+4uf3qflaod2COcet0d/hEj6l0FvAz61Hg6FJlMnYC+rbTrOjJthyE KRo7pSr7+6SZ3sFH+Fs4hyHIGqz71WXcHIJXPJnIyVU9C4U/RNvb2JAh33tq3E2ZwQG+ lS9lO/R8CoDPwT3r99WnIa11EXnf3DocERHxcQDJYsvNSLHr63i5DrJavvkJZVOb6e4d HeRLs121Xng80I7rCG4jgmKzje8FpHDMSmeGZxCKlqTG3BqDtzdg2bVy3amA29noIh9R RBUw==
Message-ID: <5c33ec76.1c69fb81.10fee.7eef@mx.google.com>
Date: Mon, 07 Jan 2019 16:19:02 -0800 (PST)
From: Steven Penny <svnpenn AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Bash heredoc on FD 3
References: <20190107190313 DOT GD593 AT calimero DOT vinschen DOT de>
User-Agent: Tryst/2.8.0 (cup.github.io/umber/awk/tryst)

On Mon, 7 Jan 2019 20:03:13, Corinna Vinschen wrote:
> I can't reproduce this with my latest code.  It works fine for me
> every time, independently of POSIXLY_CORRECT.
>
> I uploaded new snapshots to https://cygwin.com/snapshots/ with all
> the latest changes.  Please try again.

I retested with cygwin1-20190107.dll.xz. My results below. Note that "success"
means that with Bash, the script runs without error, regardless of
"POSIXLY_CORRECT" variable as you said. "failure" is to mean that with Bash,
running with "POSIXLY_CORRECT" produces this error:

    awk: error: can't open source file `/dev/fd/3' for reading (Permission
    denied)

Windows 10: success
Windows 8.1: failure
Windows 7: failure

Testing done using virtual machines from here:

https://developer.microsoft.com/microsoft-edge/tools/vms

Even if we must leave things as is, maybe its not that bad. Ideally it should be
working regardless of the variable as you said, but on all 3 Windows version.
But at least we have a workaround if need be. I would like to avoid unsetting
POSIXLY_CORRECT if I can though as it tends to be a net positive for me - as it
forces me to be more strict with code writing.

Also some might have the opinion "so what", lul those are old. Well, yes they
are but Windows 7 still has a higher marketshare than Windows 10:

https://netmarketshare.com/operating-system-market-share?id=platformsDesktopVersions

so until that changes I think we should consider it in the decsion making
process.


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