[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ls -Xt could do more
From: |
Andreas Schwab |
Subject: |
Re: ls -Xt could do more |
Date: |
Fri, 21 Jun 2002 11:28:01 +0200 |
User-agent: |
Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.3.50 (ia64-suse-linux) |
address@hidden (Dan Jacobson) writes:
|> One would think that ls -Xt would sort first by suffix, then within by
|> date within the same suffix. But alas. Anyway, even if "it's not in
|> the spec", it also "wouldn't be against the spec" if it did.
It is. POSIX says:
-t Sort with the primary key being time modified (most recently
modified first) and the secondary key being filename in the
collating sequence.
No place for a different primary sort key.
Andreas.
--
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."