From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5357 invoked by alias); 6 Jan 2019 20:18:59 -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 5349 invoked by uid 89); 6 Jan 2019 20:18:59 -0000 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 Received: from mout.kundenserver.de (HELO mout.kundenserver.de) (212.227.17.10) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 06 Jan 2019 20:18:57 +0000 Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1M8QNy-1gbrAb2ZIu-004VhP for ; Sun, 06 Jan 2019 21:18:53 +0100 Received: by calimero.vinschen.de (Postfix, from userid 500) id 836D6A806E4; Sun, 6 Jan 2019 21:18:52 +0100 (CET) Date: Sun, 06 Jan 2019 20:18:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: Bash heredoc on FD 3 Message-ID: <20190106201852.GB4430@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <5c0427c5.1c69fb81.d71e5.c8ec@mx.google.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) X-SW-Source: 2019-01/txt/msg00020.txt.bz2 --VbJkn9YxBvnuCH5J Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 700 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" Content-length: 833 -----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--