From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 107666 invoked by alias); 8 Jan 2019 00:19:07 -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 107649 invoked by uid 89); 8 Jan 2019 00:19:07 -0000 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 Received: from mail-ot1-f44.google.com (HELO mail-ot1-f44.google.com) (209.85.210.44) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 08 Jan 2019 00:19:05 +0000 Received: by mail-ot1-f44.google.com with SMTP id u16so2011611otk.8 for ; Mon, 07 Jan 2019 16:19:05 -0800 (PST) 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== Return-Path: Received: from Wdm ([2605:6000:9fc0:56:ea:4b9e:30f:6e22]) by smtp.gmail.com with ESMTPSA id m131sm29956628oia.6.2019.01.07.16.19.01 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Jan 2019 16:19:02 -0800 (PST) Message-ID: <5c33ec76.1c69fb81.10fee.7eef@mx.google.com> Date: Tue, 08 Jan 2019 00:19:00 -0000 From: Steven Penny To: cygwin@cygwin.com Subject: Re: Bash heredoc on FD 3 References: <20190107190313.GD593@calimero.vinschen.de> Content-Type: text/plain; charset=utf8; format=flowed User-Agent: Tryst/2.8.0 (cup.github.io/umber/awk/tryst) X-SW-Source: 2019-01/txt/msg00028.txt.bz2 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