Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

•Re: "not enough arguments" with 'mkdir' command

by merlyn (Sage)
on Dec 09, 2003 at 11:15 UTC ( #313392=note: print w/replies, xml ) Need Help??


in reply to "not enough arguments" with 'mkdir' command

I see a lot of responses talking about this argument as the "mask" argument. That's the "mode" argument, or "permission mode" to be a little more verbose.

Perhaps the confusion is that the bits of the "umask" are cleared out of this value, per normal Unix policy on creating new files and directories. If it was a "mask", what is it masking? {grin}

And yes, this was mandatory in Perl 2 through Perl 5.5, and became optional in Perl 5.6.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

  • Comment on •Re: "not enough arguments" with 'mkdir' command

Replies are listed 'Best First'.
Re: •Re: "not enough arguments" with 'mkdir' command
by jsprat (Curate) on Dec 09, 2003 at 19:33 UTC
    That's the "mode" argument, or "permission mode" to be a little more verbose.

    I agree that the argument should be named "mode", but that's not how it is documented. In 5.8's perlfunc:

    mkdir FILENAME,MASK mkdir FILENAME

    Note: in 5.005, it was called mode.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://313392]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2020-10-22 15:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (227 votes). Check out past polls.

    Notices?