Inconsistent results from ls

Corinna Vinschen corinna-cygwin@cygwin.com
Wed Jan 12 09:13:28 GMT 2022


On Jan 11 18:30, David wrote:
> Folks
>> I tried executing 'ls -l' on a file. I addressed the file in various ways,
> with my current directory (in Windows) set to c:\temp
>> ls -l test.txt
> ls -l /cygdrive/c/temp/test.txt
> ls -l
> ls -l *
> ls -l c:/temp/test.txt
>>> In all cases, the owner, group, date and size are the same, as I would hope
> them to be. However, the last result showed a mode setting displayed was
> different than the value shown in the others. This doesn't seem right, and
> I'm not sure what the correct value should be. Any ideas?

As soon as you use Windows path syntax, file ACLs are ignored
and permissions are just faked.
Corinna


More information about the Cygwin mailing list

AltStyle によって変換されたページ (->オリジナル) /