* Inconsistent results from ls
@ 2022-01-12 2:30 David
2022-01-12 9:13 ` Corinna Vinschen
0 siblings, 1 reply; 2+ messages in thread
From: David @ 2022-01-12 2:30 UTC (permalink / raw)
To: cygwin
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?
David
Pasted from my example, with the name of the owner changed to "myself":
c:\temp>ls -l test.txt
-rwxrwx---+ 1 myself None 14 Jan 11 18:23 test.txt
c:\temp>ls -l /cygdrive/c/temp/test.txt
-rwxrwx---+ 1 myself None 14 Jan 11 18:23 /cygdrive/c/temp/test.txt
c:\temp>ls -l
total 1
-rwxrwx---+ 1 myself None 14 Jan 11 18:23 test.txt
c:\temp>ls -l *
-rwxrwx---+ 1 myself None 14 Jan 11 18:23 test.txt
c:\temp>ls -l c:/temp/test.txt
-rw-r--r-- 1 myself None 14 Jan 11 18:23 c:/temp/test.txt
c:\temp>
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Inconsistent results from ls
2022-01-12 2:30 Inconsistent results from ls David
@ 2022-01-12 9:13 ` Corinna Vinschen
0 siblings, 0 replies; 2+ messages in thread
From: Corinna Vinschen @ 2022-01-12 9:13 UTC (permalink / raw)
To: cygwin
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-01-12 9:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-12 2:30 Inconsistent results from ls David
2022-01-12 9:13 ` Corinna Vinschen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).