On Monday 22 September 2008 14:36:02 Eric Blake wrote:
> On the other hand, the fact that strverscmp provides a distinction based
> on leading zeros is nice, as it guarantees a stable sort (no two strings
> that differ on strcmp will compare equal with strverscmp).
Good point, thanks.

The function should return 0 if (and only if) the strings are identical. In 
other case, the relative order of equivalent (from filevercmp perspective) 
strings will be ambiguous. So the sort -V or ls -v results can be dependent 
on particular sort algorithm (or its parameter). I will try to improve dpkg's 
code in this way.


Kamil


Reply via email to