go ahead... be a heretic | |
PerlMonks |
Re^2: [Cygwin] Setting and getting file permissions as octal numbersby syphilis (Archbishop) |
on Sep 04, 2022 at 03:45 UTC ( [id://11146669]=note: print w/replies, xml ) | Need Help?? |
I do find that execute permissions are automatically set for new files from a non-cygwin source copied to somewhere under /cygdrive/ That's the type of problem I'm trying to avoid - the programmatic alterations are being made on a copy of the original file and then moved back. Prior to reading your post, I had not realized that it was the move rather than the "programmatic alterations" that was the source of the trouble. I'm finding that even copying a file (using the Windows clipboard) from /home/me/someplace to /home/me/elsewhere will set the execution bits on the copy. It's probably a case of just avoiding moving the file, by editing the file in place. (That seems to work ok, but I'll still be setting the perms to their original value anyway.) A rarer case is that I have also had execution bits mysteriously vanish. I haven't really found out how that happens, so I'll be guarding against that, too. Should I also be paying attention to the perms settings of the files that make up my perl module source distros on CPAN ? Those files inside the source tarballs all originate from a Cygwin environment, and the ones that I have just checked have their execution bits set. Should I be concerned about that ? (No-one has ever complained about the perms settings of the files in my perl modules.) Cheers, Rob
In Section
Seekers of Perl Wisdom
|
|