public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: David <david@daku.org>
To: cygwin@cygwin.com
Subject: Inconsistent results from ls
Date: Tue, 11 Jan 2022 18:30:24 -0800	[thread overview]
Message-ID: <202201120231.20C2Vri5018499@d.mail.sonic.net> (raw)

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>


             reply	other threads:[~2022-01-12  2:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-12  2:30 David [this message]
2022-01-12  9:13 ` Corinna Vinschen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202201120231.20C2Vri5018499@d.mail.sonic.net \
    --to=david@daku.org \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).