Todd Wade <[email protected]> wrote: > >From: Ronald J Kimball <[email protected]> >On Thu, Sep 8, 2011 at 4:59 PM, Todd Wade <[email protected]> wrote: >>> $ umask >>> 0002 >>> $ touch foo >>> >>> $ perl -MFile::Temp -le '$File::Temp::KEEP_ALL=1; >File::Temp->new(DIR => >>".");' >>> $ ls -l >>> -rw-rw-r-- 1 me me 0 Sep 8 13:54 foo >>> -rw------- 1 me me 0 Sep 8 13:55 j3DftrlDiM >>> >>> touch honors the umask, File::Temp sets the mode of the file >explicitly. >>> >> You claim that touch honored the umask and File::Temp did not. But >note that >> your umask is 0002, not 0113. According to your explanation of umask, >the >> file foo should have been created with permissions -rwxrwxr-x, not >-rw-rw-r--. > >Ok, how about: > >touch lets the system set the permissions, File::Temp sets the mode of >the file >explicitly. > >Is that accurate? > >Todd W. >
There's a discussion about the behaviour of File::Temp and umask here: http://www.nntp.perl.org/group/perl.perl5.porters/2006/12/msg119108.html What happened after that, I don't know... Regards, Mike _______________________________________________ templates mailing list [email protected] http://mail.template-toolkit.org/mailman/listinfo/templates
