Re: [Module::Build] Re: [Module-build-checkins] [svn:Module-Build] r5891 - in Module-Build/trunk: .
Status: Beta
Brought to you by:
kwilliams
From: demerphq <dem...@gm...> - 2006-04-12 07:26:39
|
On 4/12/06, Ken Williams <ke...@ma...> wrote: > > On Apr 11, 2006, at 6:46 PM, Randy W. Sims wrote: > > > Ken Williams wrote: > >> Hey, > >> I wonder whether we should check for executability with "-x $file" > >> rather than "(stat $file)[2] & 0111". Besides being simpler, it > >> seems like it might DTRT on more platforms, where stat values > >> might be nontrustworthy. > > > > You mean like so: > > > > $mode =3D 0444 | ( -x $file ? 0111 : 0 ); > > Yup, I'll make the change. Seems to me that if -x and stat with the appropriate mask arent returning the same thing you have a bug in Perl. The only situation in blead where Im not sure that they will be identical is VMS, otherwise from what i can tell the -X tests are just perl doing the appropriate masking for you. Where stat doesnt behave correctly Perl fakes it. Or at least from what I can tell it /should/. Do you guys actually have evidence that they are different somewhere? Have I missed something in the docs? Cheers, Yves -- perl -Mre=3Ddebug -e "/just|another|perl|hacker/" |