Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: perl file permissions

by dsheroh (Monsignor)
on Dec 05, 2007 at 16:30 UTC ( [id://655121]=note: print w/replies, xml ) Need Help??


in reply to perl file permissions

The file is actually created by your editor, not by bash (unless you're doing a touch foo.pl or similar and then editing the empty file), so the answer would be editor-specific. Most likely, though, the editor (like bash) will use a single umask setting which is applied to determine the initial permissions of all new files, regardless of their type.

However, when copying a file, bash copies its permissions as well... My personal workaround to avoid lots of chmodding is to cp foo bar; vi bar (where foo happens to be a Perl program/module - the .pl is strictly optional) so that I'm editing an existing file which already has the right permissions rather than creating a new one with the editor.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2024-04-24 22:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found