From owner-freebsd-stable Mon Aug 6 13:36:46 2001 Delivered-To: freebsd-stable@freebsd.org Received: from tensor.xs4all.nl (tensor.xs4all.nl [213.84.53.200]) by hub.freebsd.org (Postfix) with ESMTP id 3F69937B401 for ; Mon, 6 Aug 2001 13:36:41 -0700 (PDT) (envelope-from dim@xs4all.nl) Received: from matrix.xs4all.nl (matrix.xs4all.nl [192.168.1.2]) by tensor.xs4all.nl (Postfix) with ESMTP id 878923C1EA; Mon, 6 Aug 2001 22:36:39 +0200 (CEST) Date: Mon, 6 Aug 2001 22:36:11 +0200 From: Dimitry Andric X-Mailer: The Bat! (v1.54 Beta/4) Business Reply-To: Dimitry Andric X-Priority: 3 (Normal) Message-ID: <5148812478.20010806223611@xs4all.nl> To: Fritz Heinrichmeyer Cc: freebsd-stable Subject: Re: ls -c does not work In-Reply-To: <3B6E8610.7020108@fernuni-hagen.de> References: <3B6E8610.7020108@fernuni-hagen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2001-08-06 at 13:57:04 Fritz Heinrichmeyer wrote: FH> ls -c does not sort for status update times, like the man page FH> describes. The gnu ls works as i expect. It turns out that GNU ls implies the sorting from the -c option, but FreeBSD's ls doesn't. So you need to also use the -t option for the sorting to be done at all (or the -r option for reverse sorting): ls -ct Instead of only ls -c However, I agree with you that this doesn't seem to be explained explicitly in the manpage. That says for -c: -c Use time when file status was last changed for sorting or print- ing. while it says for -u: -u Use time of last access, instead of last modification of the file for sorting (-t) or printing (-l). A suggestion could be to change the documentation for the -c option to read: -c Use time when file status was last changed for sorting (-t) or printing (-l). Or maybe even add an explicit comment that -c or -u by themselves do NOT imply sorting. Btw, does anybody know what POSIX says about this matter? Cheers, - -- Dimitry Andric PGP Key: http://www.xs4all.nl/~dim/dim.asc Fingerprint: 7AB462D2CE35FC6D42394FCDB05EA30A2E2096A3 -----BEGIN PGP SIGNATURE----- Version: PGP 6.5i Comment: http://www.gn.apc.org/duncan/stoa_cover.htm iQA/AwUBO27xsrBeowouIJajEQIiuACdEDeCE/KqSMwAXik0h9Jyhx1KGLIAoMHE HCYpVWvJWLHaSog+eH0Pb98o =KsAK -----END PGP SIGNATURE----- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message