Hi,
In message "[ruby-talk:15738] Ruby globbing problem?"
on 01/05/26, Guillaume Cottenceau <gc / mandrakesoft.com> writes:
|I have two directories, one being a "real" directory, the other one being
|a symlink to another directory. It seems that Ruby will have some problems
|globbing with Dir#[] when a symlink is in the way, while Dir#entries and
|Dir#open/each seem to work.. quite strange.
I see a problem from
|irb(main):002:0> Dir.entries("/SRPMS").size
|1117
and
|irb(main):004:0> Dir["/SRPMS/*"]
|[]
It must be a bug. But I'm not exactly sure how to regenerate the
problem. Could you tell me the link situation in detail?
matz.