From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22989 invoked by alias); 22 Jan 2019 09:06:40 -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 22976 invoked by uid 89); 22 Jan 2019 09:06:39 -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=H*i:sk:1c60402, H*f:sk:1c60402 X-HELO: mout.kundenserver.de Received: from mout.kundenserver.de (HELO mout.kundenserver.de) (212.227.126.134) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 22 Jan 2019 09:06:37 +0000 Received: from calimero.vinschen.de ([217.91.18.234]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MQy0N-1gXCuL2s6R-00Nz3j for ; Tue, 22 Jan 2019 10:06:34 +0100 Received: by calimero.vinschen.de (Postfix, from userid 500) id D95ADA80699; Tue, 22 Jan 2019 10:06:33 +0100 (CET) Date: Tue, 22 Jan 2019 09:06: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: <20190122090633.GK2802@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <0f030e809f063f5a5e64ff7a7a0c3227@xs4all.nl> <20190106201950.GC4430@calimero.vinschen.de> <1c60402837d6510667357257b5e96e88@xs4all.nl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="2Z2K0IlrPCVsbNpk" Content-Disposition: inline In-Reply-To: <1c60402837d6510667357257b5e96e88@xs4all.nl> User-Agent: Mutt/1.10.1 (2018-07-13) X-SW-Source: 2019-01/txt/msg00167.txt.bz2 --2Z2K0IlrPCVsbNpk Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 795 On Jan 22 09:57, Houder wrote: > On 2019-01-22 09:50, Houder wrote: > > On Sun, 6 Jan 2019 21:19:50, Corinna Vinschen wrote: > > > This should work in the latest developer snapshot uploaded to > > > https://cygwin.com/snapshots/ Please give it a try. > > So, for the record only: >=20 > and as another example, this STC succeeds on Linux ..., but fails on Cygw= in. >=20 > 64-@@ ./stca /dev/fd/0 < > bla > > EOF > fd1 =3D 0 > argv[1] =3D /dev/fd/0 > fd2 =3D 3 > id =3D writefd2, errno =3D 13, errstr =3D Permission denied > 64-@@ Not sure what you're testing. This is the result for me on both, Windows 8.1 and Windows 10 1809: )$ ./stca /dev/fd/0 <