GNU bug report logs - #16444
grep -r fails with "Bad file descriptor" for mingw-w64

Previous Next

Package: grep;

Reported by: "Stephan T. Lavavej" <stl <at> nuwen.net>

Date: 2014年1月14日 16:54:03 UTC

Severity: minor

Tags: moreinfo

Merged with 19777

Full log


Message #30 received at 16444 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Norihiro Tanaka <noritnk <at> kcn.ne.jp>, 
 David Grayson <davidegrayson <at> gmail.com>
Cc: 16444 <at> debbugs.gnu.org
Subject: Re: bug#16444: bug #16444: grep -r fails with "Bad file descriptor"
 for mingw-w64
Date: 2015年3月11日 23:15:12 -0700
Norihiro Tanaka wrote:
> MinGW always returns ST_INO = 0, which is POSIX incompatible.
Yes, this is a known deficiency in MinGW that is documented in Gnulib, here:
http://www.gnu.org/software/gnulib/manual/html_node/sys_002fstat_002eh.html
(search for "st_ino").
When we discovered this deficiency years ago, we decided that it'd be too much 
of a pain to work around it then. Please see the thread starting here:
http://lists.gnu.org/archive/html/bug-gnulib/2009-09/msg00252.html
in which a patch was installed that tries to work around some of the MinGW 
deficiency; unfortunately the patch broke a lot of things and was backed out. 
I'm not optimistic about a fix this time either.
The deficiency should be fixed in MinGW, so that functions like 'stat' behave as 
programs expect. In the meantime, I suggest not using recursive grep in MinGW.

This bug report was last modified 10 years and 225 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.

AltStyle によって変換されたページ (->オリジナル) /