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:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; q=dns; s= default; b=XlelcL4G/d9MfC+FEdW6fc5zUDkdYOdf26nHsQcwd3FS2NisTeavF mVLKNh5ItVmUAUtzk8ZGJeVsv4dtiK7ue/MRoqgTgQKO9JxlLFVTlHQgvdkur/eh dzgTFQCwUXWK4VukhbIBT8Uuh1ES+UtyOLWQpjJSBuRX4DEh5WRBKI= 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:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; s=default; bh=zEUkudIdtugxU0ZmNrs81JoYJfg=; b=uRalipsBbqZdKTe+5xJK47oQwpgY +JNiSba/6AdV6Gkn5L2qCLM8bOv+LTXYZroHVvrWtrOXAHVOMnFWoOWAyJYXz6xz JaeqUqQDdqyRjEoDJnRZ6es/ouzlSYlb5Kr7TZbzWrAhzPgOzofUJYTwrEMFLij+ VsWOkipkCL5udrQ= 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-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 Date: Tue, 22 Jan 2019 10:06:33 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT 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 AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <0f030e809f063f5a5e64ff7a7a0c3227 AT xs4all DOT nl> <20190106201950 DOT GC4430 AT calimero DOT vinschen DOT de> <1c60402837d6510667357257b5e96e88 AT xs4all DOT 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) --2Z2K0IlrPCVsbNpk Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 <