/dev/fd/N not synonymous with file descriptor N; it is on Linux
Corinna Vinschen
corinna-cygwin@cygwin.com
Tue Jan 22 09:06:00 GMT 2019
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:
>
> and as another example, this STC succeeds on Linux ..., but fails on Cygwin.
>
> 64-@@ ./stca /dev/fd/0 <<EOF
> > bla
> > EOF
> fd1 = 0
> argv[1] = /dev/fd/0
> fd2 = 3
> id = writefd2, errno = 13, errstr = 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 <<EOF
? bla
? EOF
fd1 = 0
argv[1] = /dev/fd/0
fd2 = 3
buf = \
Hello, world!
Corinna
--
Corinna Vinschen
Cygwin Maintainer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20190122/b1819d84/attachment.sig>
More information about the Cygwin
mailing list