Date: Mon, 6 Aug 2001 22:36:11 +0200 From: Dimitry Andric <dim@xs4all.nl> To: Fritz Heinrichmeyer <fritz.heinrichmeyer@fernuni-hagen.de> Cc: freebsd-stable <freebsd-stable@FreeBSD.ORG> Subject: Re: ls -c does not work Message-ID: <5148812478.20010806223611@xs4all.nl> In-Reply-To: <3B6E8610.7020108@fernuni-hagen.de> References: <Pine.BSF.4.33.0108061142450.730-100000@avatar.casantos.org> <3B6E8610.7020108@fernuni-hagen.de>
next in thread | previous in thread | raw e-mail | index | archive | help
-----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 <dim@xs4all.nl> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5148812478.20010806223611>