in reply to Why does unix mkdir and perl mkdir behave differently?

I think what's happening is that the mask argument to mkdir is interacting with the value of umask. To quote:

The permission (or ``mode'') values you pass mkdir or sysopen are modified by your umask, so even if you tell sysopen to create a file with permissions 0777, if your umask is 0022 then the file will actually be created with permissions 0755.

emc

e(π√−1) = −1
  • Comment on Re: Why does unix mkdir and perl mkdir behave differently?