From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from d.mail.sonic.net (d.mail.sonic.net [64.142.111.50]) by sourceware.org (Postfix) with ESMTPS id 142DD3858029 for ; Wed, 12 Jan 2022 02:31:55 +0000 (GMT) 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 Received: from telford.daku.org (45-27-31-63.lightspeed.sntcca.sbcglobal.net [45.27.31.63]) (authenticated bits=0) by d.mail.sonic.net (8.16.1/8.16.1) with ESMTPSA id 20C2Vri5018499 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Tue, 11 Jan 2022 18:31:53 -0800 Message-Id: <202201120231.20C2Vri5018499@d.mail.sonic.net> Received: from KURN-DESK.daku.org (KURN-DESK.attlocal.net [192.168.1.101]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by telford.daku.org (Postfix) with ESMTPS id EAFD2901CCA for ; Tue, 11 Jan 2022 18:31:52 -0800 (PST) X-Mailer: QUALCOMM Windows Eudora Version 7.1.0.9 Date: Tue, 11 Jan 2022 18:30:24 -0800 To: cygwin@cygwin.com From: David Subject: Inconsistent results from ls Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed 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@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Jan 2022 02:31:56 -0000 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>