SPUG: getpwent bug in find2perl

DeRykus, Charles E charles.e.derykus at boeing.com
Sat Aug 13 20:56:39 PDT 2005


> perl -MFile::Find -le "find sub{print},'.'"  # Win32
>> Actually, I really don't have any pressing need to do file listings
of /any/ kind on Windoze, but in my book I'm 
>> discussing the use of find2perl by Unix users to compose scripts for
Jr. SAs to run on Windoze, and I was just 
>> surprised to find that one of the most common uses of find, "find .
-ls", doesn't even run successfully on Windoze.

>> Don't you think it should?  If not, then maybe we need a portability
option to find2perl, to make sure it disallows the >> use of "-ls" with
that option, or else implements it portably.

A portable find2perl sounds like a great idea. Even if the Resource Kit
or Cygwin already
has 'find',  find2perl is more versatile. I wonder how hard it'd be to
implement on the Mac 
or one of the more exotic OS's. 

Charles DeRykus

More information about the spug-list mailing list