This is the mail archive of the
mailing list for the Cygwin project.
Bash heredoc on FD 3
- From: Steven Penny <svnpenn at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Sun, 02 Dec 2018 10:43:17 -0800 (PST)
- Subject: Bash heredoc on FD 3
Using this file:
$ cat hello.sh
awk -f /dev/fd/3 3<<eof
print "hello world"
it runs as expected with Dash:
$ dash hello.sh
However it fails with Bash:
$ bash hello.sh
awk: fatal: can't open source file `/dev/fd/3' for reading (No such file or
I tried also with Debian and both Dash and Bash work as expected. What is
causing Cygwin Bash to fail here?
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple