At 6:08 PM +0200 12/20/03, Saku Setala wrote:
>Hi,
>
>On Sat, 20 Dec 2003, Michael G Schwern wrote:
>
>> Which one of those directories didn't exist?  [--.lib.auto.attrs]?
>> That's relative to [.ext.attrs].
>
>All directories do exist. Tried twiddling the protections but no help.

Saku, it's a bug and has already been reported and is being tracked here:

https://rt.cpan.org/NoAuth/Bug.html?id=4676

I at first thought it was because there was a problem with passing a
directory spec in the form [.foo.bar] to chmod, but it's really
because MakeMaker is expanding the directory spec before it passes it
to chmod.

Given an empty directory [.foo], this doesn't blow up:

$ perl -e "chmod(0755,'[.foo]') or print $^E;"
$

but this does:

$ perl -e "chmod(0755,glob('[.foo]')) or print $^E;"
%RMS-E-FNF, file not found

and that happens because globbing an empty directory returns a
zero-length string:

$ perl -e "print '>' . glob('[.foo]') . '<';"
><


-- 
________________________________________
Craig A. Berry
mailto:[EMAIL PROTECTED]

"... getting out of a sonnet is much more
 difficult than getting in."
                 Brad Leithauser

Reply via email to