Issue #8283 has been updated by nagachika (Tomoyuki Chikanaga).


Hello, Hans.

After r40345, the result of Dir.glob("**") don't change, but Dir.glob("**/.git/config") matches "./.git/config" or so, and it is consistent with shell's behavior.
I think r40345 is appropriate bugfix.
----------------------------------------
Backport #8283: Dir.glob doesn't recurse hidden directories
https://bugs.ruby-lang.org/issues/8283#change-38785

Author: gpakosz (Gregory Pakosz)
Status: Assigned
Priority: Normal
Assignee: nagachika (Tomoyuki Chikanaga)
Category: 
Target version: 


Hello,

I noticed Dir.glob('**') doesn't recurse hidden directories.

I believe regression has been introduced by r36903.

Here is the following directory / file structure:
$ find .
.
./foo
./foo/.bar
./foo/.bar/baz.txt
./foo/bar

And here is the behavior of ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-darwin11.4.2]:
$ ruby -e "puts Dir.glob('**/*')"
foo
foo/bar


-- 
http://bugs.ruby-lang.org/