From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 19 19:35:48 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7DE8F16A4CF for ; Sat, 19 Jun 2004 19:35:48 +0000 (GMT) Received: from mta02-svc.ntlworld.com (mta02-svc.ntlworld.com [62.253.162.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id DF0D743D1F for ; Sat, 19 Jun 2004 19:35:47 +0000 (GMT) (envelope-from scott@fishballoon.org) Received: from llama.fishballoon.org ([81.104.195.124]) by mta02-svc.ntlworld.comESMTP <20040619193432.NGOS8778.mta02-svc.ntlworld.com@llama.fishballoon.org>; Sat, 19 Jun 2004 20:34:32 +0100 Received: from tuatara.fishballoon.org ([192.168.1.6]) by llama.fishballoon.org with esmtp (Exim 4.34 (FreeBSD)) id 1Bblcw-000LHF-Oo; Sat, 19 Jun 2004 20:35:46 +0100 Received: (from scott@localhost) by tuatara.fishballoon.org (8.12.11/8.12.11/Submit) id i5JJZjuC028783; Sat, 19 Jun 2004 20:35:46 +0100 (BST) (envelope-from scott) Date: Sat, 19 Jun 2004 20:35:45 +0100 From: Scott Mitchell To: Dimitry Andric Message-ID: <20040619193545.GC462@tuatara.fishballoon.org> References: <20040619175007.GB462@tuatara.fishballoon.org> <414787887.20040619210137@andric.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <414787887.20040619210137@andric.com> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 4.10-PRERELEASE i386 cc: freebsd-hackers@freebsd.org Subject: Re: /bin/ls sorting bug? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Jun 2004 19:35:48 -0000 On Sat, Jun 19, 2004 at 09:01:37PM +0200, Dimitry Andric wrote: > On 2004-06-19 at 19:50:07 Scott Mitchell wrote: > > > (562) tuatara:/tmp/foo $ ls -lt > > total 0 > > -rw-rw-r-- 1 scott wheel 0 19 Jun 17:48 c > > -rw-rw-r-- 7 scott wheel 0 19 Jun 17:13 b > > -rw-rw-r-- 7 scott wheel 0 19 Jun 17:13 d > > -rw-rw-r-- 7 scott wheel 0 19 Jun 17:13 e > > -rw-rw-r-- 7 scott wheel 0 19 Jun 17:13 f > > -rw-rw-r-- 7 scott wheel 0 19 Jun 17:13 g > > -rw-rw-r-- 7 scott wheel 0 19 Jun 17:13 h > > -rw-rw-r-- 1 scott wheel 0 19 Jun 17:13 i > > -rw-rw-r-- 1 scott wheel 0 19 Jun 17:13 j > > -rw-rw-r-- 7 scott wheel 0 19 Jun 17:13 a > > -rw-rw-r-- 1 scott wheel 0 19 Jun 17:13 k > > Can you please show the output of "ls -ltT" ? Sure (added -i to make it easier to see what's going on here): (505) tuatara:/tmp/foo $ ls -iltT total 0 35 -rw-rw-r-- 1 scott wheel 0 19 Jun 17:48:40 2004 c 11 -rw-rw-r-- 7 scott wheel 0 19 Jun 17:13:36 2004 b 11 -rw-rw-r-- 7 scott wheel 0 19 Jun 17:13:36 2004 d 11 -rw-rw-r-- 7 scott wheel 0 19 Jun 17:13:36 2004 e 11 -rw-rw-r-- 7 scott wheel 0 19 Jun 17:13:36 2004 f 11 -rw-rw-r-- 7 scott wheel 0 19 Jun 17:13:36 2004 g 11 -rw-rw-r-- 7 scott wheel 0 19 Jun 17:13:36 2004 h 41 -rw-rw-r-- 1 scott wheel 0 19 Jun 17:13:36 2004 i 51 -rw-rw-r-- 1 scott wheel 0 19 Jun 17:13:36 2004 j 11 -rw-rw-r-- 7 scott wheel 0 19 Jun 17:13:36 2004 a 52 -rw-rw-r-- 1 scott wheel 0 19 Jun 17:13:36 2004 k Most of those files (a,b,d,e,f,g,h) are hard-linked to each other - so they definitely share the same timestamp. i,j,k were created with 'touch -r a i j k', so they should also have the same time. c is different to make sure I didn't break the sort order when files *did* have different times. Scott -- =========================================================================== Scott Mitchell | PGP Key ID | "Eagles may soar, but weasels Cambridge, England | 0x54B171B9 | don't get sucked into jet engines" scott at fishballoon.org | 0xAA775B8B | -- Anon