delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/01/06/15:20:05

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=woVmocLtx+v5aw30Fq7dUul5gt6ZejYZk8wQv3Ube5Q3dxVSfbvNA
JxGQX4U72k6AzkCprKM8L12Be7CxXjvVw9cIvx+iMXjWu6/7TTlFw8yEQjw5gMd6
PJ6UJlRnbiSS6gwhyOnUyaN1CXlZv7+LaAMJ8nLeEQa89+kKH/Izu4=
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=jcvYWFHuk6LoniEeonvcJGRH0FY=; b=movmGPR6pquakBfBlOu97FsSLi+V
NwOD26pb+M4kSxFlK/wxCVjpX5Y7gGusP0SKUtzodwwCnuTdND9OO+tGhDKftCdH
cEfuAKjqwSwsqUKIiB8b9zHgInLl6FvXDJfIsvuwbuKAlfxt5c4xIw8NFCwuU0+y
lKbFSYgs/ID7LZA=
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=-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
Date: Sun, 6 Jan 2019 21:19:50 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT 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 AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <0f030e809f063f5a5e64ff7a7a0c3227 AT xs4all DOT nl>
MIME-Version: 1.0
In-Reply-To: <0f030e809f063f5a5e64ff7a7a0c3227@xs4all.nl>
User-Agent: Mutt/1.10.1 (2018-07-13)

--qcHopEYAB45HaUaB
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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"

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019