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=vadZUeq37SKSg4bWdwhWmyPOdUzKCTrKdb5S5X7yjW8Fj0BdaKHsg BnqRCFf0QfYagRYR79YXBitWXKYQ6d/aI16Nl+lm2t5SB6MtTk/sW9jxEs8zEIjF X1cISXK4dEJhe7IDpXJyh3aa+zMpwCHt/nUh5ABA2bZfUhOnRofELs= 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=G4h7j+C4iqrjadzkeb32SaYq9DQ=; b=ui7b+GlR+VZYshf7OglEBrHXVpd1 MlP1KwwPyVrRqGtuPH8AaJo+siCeyczlf1whEefzl+N2iAAy9vROahhF5EMy19iB RwImHHncTFFoIzJkosL+0S1TbuTWreN4MBLJ3g8pot1unTCjJ6tV95JxRoUa0WDQ qM1drO0UXcdJN8o= 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.4 required=5.0 tests=BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=H*F:D*cygwin.com, H*r:500, reading X-HELO: mout.kundenserver.de Date: Sun, 6 Jan 2019 21:18:52 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: Bash heredoc on FD 3 Message-ID: <20190106201852.GB4430@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <5c0427c5 DOT 1c69fb81 DOT d71e5 DOT c8ec AT mx DOT google DOT com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="VbJkn9YxBvnuCH5J" Content-Disposition: inline In-Reply-To: <5c0427c5.1c69fb81.d71e5.c8ec@mx.google.com> User-Agent: Mutt/1.10.1 (2018-07-13) --VbJkn9YxBvnuCH5J Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Dec 2 10:43, Steven Penny wrote: > Using this file: >=20 > $ cat hello.sh > awk -f /dev/fd/3 3< BEGIN { > print "hello world" > } > eof >=20 > it runs as expected with Dash: >=20 > $ dash hello.sh > hello world >=20 > However it fails with Bash: >=20 > $ bash hello.sh > awk: fatal: can't open source file `/dev/fd/3' for reading (No such fi= le or > directory) >=20 > I tried also with Debian and both Dash and Bash work as expected. What is > causing Cygwin Bash to fail here? 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 --VbJkn9YxBvnuCH5J Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlwyYqwACgkQ9TYGna5E T6Acvw//RfeDyY6GeuTp8lIRiDrbeWPK+xEQ/tewFdIuJDRnKJUBXrtCPogttDR4 Jp2Yj5ecli0tKB5nH5n/acSsaGBV+AW2eoQzbcrqa6UalGq20elAeInejkjAJ5S7 dCXYNNEzbZl78wpeCoAqzHJniUCiXMoB+QikQgWfNweHCzJ9sCmpteCeiEkE22XO 3EzsZwJ5nWZ0OdIHWgOE5qCjb/m68X7q+JSsHDjLEiRT+nr1FaUD5aH91Z7oS0Ir MH9F7szNAXy0hRwI+j0bjO90ev6mVjPuPD1sjiYzX0BBIGoBeB7yGdjQTkkPbnDs DheXCxM7+n6cRmQIVL5Oecl/9UOMgqPKHRlwykV/LGePt+SAjYoWSowXANTlUEsf eC2H/7vwzmYl1EuNCUmqnEQP/R9Uo7Ije9ukY9WORMDEV73yg3gsiZfMdHN57L2J wM+zfY42AFIkNsW/Ab4vjCHtLJbdQJgJLu/3z0G9Y8BWyh33mkuQrHe6slYAJB5v GfBa+AWGtxKyxwH6kJLjho1IR0mXtOEWK5MV86lp4pgN1RN8xnHl+omFAhjNmN3E iH7esaF4qCw+pjRXaddVz+DqUYRL7Yn/vt54ATIJrHAu0FD2IC/BL8J4y/X2lcoO 0b6mzPj6DjV3bXPzV9m2sgv6WmWh1TeFcwl9s+o49Si9SaZZhDk= =stUo -----END PGP SIGNATURE----- --VbJkn9YxBvnuCH5J--