From: Ronald J Kimball <rkimb...@pangeamedia.com>
On Thu, Sep 8, 2011 at 4:59 PM, Todd Wade <tr...@sbcglobal.net> 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.

_______________________________________________
templates mailing list
templates@template-toolkit.org
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to