Firstly, see the update to my post.
Hopefully, the originally incorrect /cygdrive/ (now changed to /cygdrive/c/cygwin64) didn't mislead you;
my apologies if it did.
It seems our mode of operating differs somewhat;
for instance, I don't believe I've ever used Windows clipboard to copy a file.
I rarely use File Explorer for anything;
ironically, the most common use is to update Cygwin
(for the current 3.3.5 version: C:\Users\ken\local\opt\cygwin\3_3_5\setup-x86_64.exe).
I use a Cygwin CLI to create files:
"cp old new", "vim new" and "> new" would be the most common for individual files;
"module-starter --module=New::Module" creates a directory structure for a new module
— none of these creates files with inappropriate permissions.
I checked through all of my (Perl v5.36) @INC directories.
The core modules were installed using perlbrew;
all CPAN modules were installed using the cpan utility
(two exceptions; "cpan: Terminal does not support AddHistory." has details);
all personal modules were installed with a standard "make install".
All *.pm files had 444 permissions
(except for one black sheep, Tcl.pm, which had 555 — I've no idea what happened there).
I found an old Strawberry Perl v5.26.3 installation; I don't recall details of setting this up.
All *.pm files in lib and vendor/lib had 444 permissions with owner ken;
all in site/lib had 555 with owner Administrators.
That's about all the info I could think of that was relevant.
I'm happy to share more if you think it will be useful; just ask.
Bear in mind how our different ways of working may affect outcomes.
"No-one has ever complained about the perms settings of the files in my perl modules."
I'm really no expert in this area; take the following as (potentially ill-informed) opinion.
If no one has ever complained, there's probably no urgency to "fix" what's not broken.
I see you have "25 distributions uploaded to CPAN".
Perhaps change the permissions in one distro as a test;
look at working on the others as updates are made.
|