From owner-freebsd-current@FreeBSD.ORG Sun Oct 5 04:09:09 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1DF0A16A4BF for ; Sun, 5 Oct 2003 04:09:09 -0700 (PDT) Received: from mailout04.sul.t-online.com (mailout04.sul.t-online.com [194.25.134.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id 10CD943FCB for ; Sun, 5 Oct 2003 04:09:08 -0700 (PDT) (envelope-from Jan.Stocker@t-online.de) Received: from fwd03.aul.t-online.de by mailout04.sul.t-online.com with smtp id 1A66l4-0007i8-04; Sun, 05 Oct 2003 13:09:02 +0200 Received: from [10.1.2.252] (VUd7K6Z6oeUs4dDV4wYpojppW3AT8n98Doo52S+ZlNB2M+eiYue4kU@[80.134.114.192]) by fwd03.sul.t-online.com with esmtp id 1A66kx-22r2qe0; Sun, 5 Oct 2003 13:08:55 +0200 From: Jan.Stocker@t-online.de (Jan Stocker) To: Bruce Evans In-Reply-To: <20031005195838.U4269@gamplex.bde.org> References: <1065247839.598.2.camel@Twoflower.liebende.de> <20031004041941.Q37047-100000@sigma.freebsdhackers.net> <1065345238.611.7.camel@Twoflower.liebende.de> <20031005195838.U4269@gamplex.bde.org> Content-Type: text/plain Message-Id: <1065352133.606.11.camel@Twoflower.liebende.de> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.4 Date: Sun, 05 Oct 2003 13:08:54 +0200 Content-Transfer-Encoding: 7bit X-Seen: false X-ID: VUd7K6Z6oeUs4dDV4wYpojppW3AT8n98Doo52S+ZlNB2M+eiYue4kU cc: current@freebsd.org Subject: Re: ls -c / ls -u doesn't work anymore X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Jan.Stocker@t-online.de List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Oct 2003 11:09:09 -0000 On Sun, 2003-10-05 at 12:11, Bruce Evans wrote: > On Sun, 5 Oct 2003, Jan Stocker wrote: > > > Newest world/kernel.... same prob > > > > jstocker@Twoflower:~ # mkdir x > > jstocker@Twoflower:~ # cd x > > jstocker@Twoflower:~/x # touch b-first; sleep 60 > > jstocker@Twoflower:~/x # touch c-second; sleep 60 > > jstocker@Twoflower:~/x # touch a-third > > jstocker@Twoflower:~/x # ls -l -c > > total 0 > > -rw-r--r-- 1 jstocker jstocker 0 5 Oct 11:10 a-third > > -rw-r--r-- 1 jstocker jstocker 0 5 Oct 11:08 b-first > > -rw-r--r-- 1 jstocker jstocker 0 5 Oct 11:09 c-second > > > > > > looks very alphabetic.... > > -c and -u only work when combined with -t. This may be bogus, but it > is no different than in 4.4BSD-Lite2 and it is specified by POSIX > (POSIX.1-200x-draft7: > > 21836 -c Use time of last modification of the file status information (see in the > 21837 System Interfaces volume of IEEE Std 1003.1-200x) instead of last modification of > 21838 the file itself for sorting (-t) or writing (-l). > 21864 -u Use time of last access (see in the System Interfaces volume of > 21865 IEEE Std 1003.1-200x) instead of last modification of the file for sorting (-t) or > 21866 writing (-l). > > The FreeBSD ls clearly attempts to implement this. The FreeBSD man page > is clearly a fuzzy version of this: > > -c Use time when file status was last changed for sorting or print- > ing. > -u Use time of last access, instead of last modification of the file > for sorting (-t) or printing (-l). > > The FreeBSD man page is missing the critical detail that the status change > time and access times are used _instead_ of the modification time. and then -t sorts that date... okay.... works fine.... Jan P.S. but the behaviour has changed and i've nowhere read it..... my old box: FreeBSD xxxx 4.7-RC FreeBSD 4.7-RC #0: Thu Sep 19 01:04:45 MEST 2002 root@xxxx:/usr/obj/usr/src/sys/xxxx i386 has a "ls -c" and does not need "ls -t -c". Jan