[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ls -v is irritating
From: |
Kamil Dudka |
Subject: |
Re: ls -v is irritating |
Date: |
Tue, 24 Feb 2009 11:13:33 +0100 |
User-agent: |
KMail/1.9.6 (enterprise 0.20071012.724442) |
On Monday 23 February 2009 22:12:48 Sven Joachim wrote:
> I just upgraded coreutils from 6.12 to 7.1, and the new sorting behavior
> of `ls -v' really irritates me. Backup files are listed before the real
> files, parent directory (..) at the very end... At first I thought that
ls -v means "sort by version". In ascending order you have older versions
before the newer. And the backed up version is the older version of the file,
isn't it?
> I had sorted by time and not by name in Emacs' dired:
>
> ,----
>
> | dired-listing-switches is a variable defined in `dired.el'.
> | Its value is "-alv"
>
> `----
>
> Is there a way to get the old behavior back?
> By the way, this change is briefly mentioned in the NEWS file
>
> ,----
>
> | * Noteworthy changes in release 7.0 (2008-10-05) [beta]
> | [...]
> | ls -v now uses filevercmp function as sort predicate (instead of
> | strverscmp)
>
> `----
>
> but it is not reflected in the manual node
> (Info "(coreutils) More details about version sort").
Indeed. I'll write a patch to update Texinfo documentation.
Kamil