opendir(/dev/fd/n) should fail
Corinna Vinschen
corinna-cygwin@cygwin.com
Fri Jan 23 12:22:00 GMT 2015
On Jan 23 11:09, Helmut Karlowski wrote:
>
> --------------------------------------------------
> Helmut Karlowski <helmut.karlowski@ish.de> wrote:
> (23/01/2015 10:54)
> >
> > It's not just bash. The same happens in my home-grown shell. Starting
> > with /dev/fd/3 opendir succeeds giving (only the opendir-entries):
>
> Maybe it's because:
>
> 3 -> /proc/3008/fd/
>
> which recurses into /dev/fd again?
Yes, that seems likely.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20150123/02022f67/attachment.sig>
More information about the Cygwin
mailing list