X-Recipient: archive-cygwin AT delorie DOT com X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 142DD3858029 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=daku.org Authentication-Results: sourceware.org; spf=none smtp.mailfrom=daku.org Message-Id: <202201120231.20C2Vri5018499@d.mail.sonic.net> X-Mailer: QUALCOMM Windows Eudora Version 7.1.0.9 Date: Tue, 11 Jan 2022 18:30:24 -0800 To: cygwin AT cygwin DOT com From: David Subject: Inconsistent results from ls Mime-Version: 1.0 X-Sonic-CAuth: UmFuZG9tSVaQcBl5uiCNU3hDc18JnSOKB04gWhaFZskt7h9QniwH9FNhLqL0RsGzldL5Zyu5raC3bFXTSTVTWy+rKHleOKa5 X-Sonic-ID: C;avKczU9z7BGEgMvx0xqB8A== M;vkLGzU9z7BGEgMvx0xqB8A== X-Sonic-Spam-Details: -0.1/5.0 by cerberusd X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, MSGID_FROM_MTA_HEADER, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "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> -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple