From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9466 invoked by alias); 6 Jan 2019 20:19:55 -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 9454 invoked by uid 89); 6 Jan 2019 20:19:54 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-100.9 required=5.0 tests=BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=Based, 2018-12, 201812, Hx-languages-length:684 X-HELO: mout.kundenserver.de Received: from mout.kundenserver.de (HELO mout.kundenserver.de) (212.227.126.187) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 06 Jan 2019 20:19:53 +0000 Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MCGag-1gWqxg3Uqg-009QuZ for ; Sun, 06 Jan 2019 21:19:50 +0100 Received: by calimero.vinschen.de (Postfix, from userid 500) id 82193A806E4; Sun, 6 Jan 2019 21:19:50 +0100 (CET) Date: Sun, 06 Jan 2019 20:19:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: /dev/fd/N not synonymous with file descriptor N; it is on Linux Message-ID: <20190106201950.GC4430@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <0f030e809f063f5a5e64ff7a7a0c3227@xs4all.nl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="qcHopEYAB45HaUaB" Content-Disposition: inline In-Reply-To: <0f030e809f063f5a5e64ff7a7a0c3227@xs4all.nl> User-Agent: Mutt/1.10.1 (2018-07-13) X-SW-Source: 2019-01/txt/msg00021.txt.bz2 --qcHopEYAB45HaUaB Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 646 On Dec 16 17:31, Houder wrote: > L.S., >=20 > /dev/fd/N not synonymous with file descriptor N; it is on Linux >=20 > 64-@@ cat /dev/fd/0 <<\EOF > > Hi > > EOF > cat: /dev/fd/0: No such file or directory >=20 > fails on Cygwin; not on Linux. >=20 > Also see: >=20 > https://cygwin.com/ml/cygwin/2018-12/msg00028.html > ( Bash heredoc on FD 3 ) >=20 > Based on the output of strace on Linux, I composed an STC, that duplicates > the steps taken by bash (and cat). This should work in the latest developer snapshot uploaded to https://cygwin.com/snapshots/ Please give it a try. Thanks, Corinna --=20 Corinna Vinschen Cygwin Maintainer --qcHopEYAB45HaUaB Content-Type: application/pgp-signature; name="signature.asc" Content-length: 833 -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlwyYuYACgkQ9TYGna5E T6DIiQ/+LlC0fqvBVFXPtzFhoQFyPTG2Jbkoyn5CrLi5Sgftd/3q72MLlnpJhZlX ChDJmxQ0LJ6gbU3wkdSnEZMEwtIfC223A4Gp77YGftphVTlryaIybP7eq6pjqj7i bo9Ey8kLSYH0j8yiKMWEhTpqCTszdBiMjE/ZGZqR+9EUlQGa3hFpiIwR8tE10hOP +01MMNqZx6u1yRRppgewkrLZ7wBI0uuwgY+5OTw3/Lhkusd+/D4g5eTibyW3rUpT S/jNO+bZjcs79zkxNJ7RVgnukKgrP0sGAQ2zA8OCSK9rndYjRnlXCgFNpMJuM08+ aKAn1+xbseuKTZmsrAiEN8EK2BNJewT2DB49qU3mYNlXQaQ9DCVBdv+2n5FaAD6O AwAoBvS2/DqAWkp6wmwskXRyjubx8s8D0vPfKgnv8MliktJ3I3kTILdGWlI83yuf sFdAcwqZy/5SFdeS/TayMK68LBHeTFcRg/kWsPatgplgOGGsZB0Dk7cT+RuJJKsi joAfQf6Vr+GrmfEcABjXQ7h5eloxIYK0NUAHOvE99HjuBHiAFYO5vzX8bDgiGLlf pSy/x49aW59gufjR84FOB08tqahzDF+vkgd+0Q5Vgndh75pLUWH7PV8ZaCa5/io/ DSCoPr5fEyJkDnR/Qbtb+JLYJ/vISACkFgJRcSTj0TSX3TBAqbA= =sIHJ -----END PGP SIGNATURE----- --qcHopEYAB45HaUaB--