On Wed, 28 May 2008, bob davis wrote:
> 
> On a offtopic note(well for the list at least)

Would be on-topic for the perl-win32-users mailing list. :)
 
> perl -e "print chmod 0777 'test.txt'"
> on ntfs
> works under cygwin
> but fails under strawberry.
> 
> Is this true of other win32 dists?

Yes.  From `perldoc perlport`:

    chmod   Only limited meaning. Disabling/enabling write permission is
            mapped to locking/unlocking the file. (Mac OS)

            Only good for changing "owner" read-write access, "group", and
            "other" bits are meaningless. (Win32)

            Only good for changing "owner" and "other" read-write access.
            (RISC OS)

            Access permissions are mapped onto VOS access-control list
            changes. (VOS)

            The actual permissions set depend on the value of the "CYGWIN"
            in the SYSTEM environment settings. (Cygwin)

Cheers,
-Jan

Reply via email to