summaryrefslogtreecommitdiff
path: root/src/ls.c
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2009-12-17 10:48:54 +0000
committerPádraig Brady <P@draigBrady.com>2009-12-19 01:21:28 +0000
commit3593cf50b224f35d502c36181f94cd5ece257342 (patch)
tree942ea4f2363c8bbc8831237dbd5c3c693b54360a /src/ls.c
parentd64c186d8e28d99ece16e591f6823a1da904ac44 (diff)
downloadcoreutils-3593cf50b224f35d502c36181f94cd5ece257342.tar.xz
doc: enhance and reference info about version comparison
* doc/coreutils.texi (sort invocation): Reference the additional info about filevercmp rather than the unused strverscmp. (Details about version sort): Add some examples that are not handled well by fileversmp. * src/ls.c: Change a comment referencing the now unused strverscmp.
Diffstat (limited to 'src/ls.c')
-rw-r--r--src/ls.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ls.c b/src/ls.c
index aeaa58417..6c1f275dc 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -3272,8 +3272,7 @@ DEFINE_SORT_FUNCTIONS (extension, cmp_extension)
All the other sort options, in fact, need xstrcoll and strcmp variants,
because they all use a string comparison (either as the primary or secondary
sort key), and xstrcoll has the ability to do a longjmp if strcoll fails for
- locale reasons. Last, strverscmp is ALWAYS available in coreutils,
- thanks to the gnulib library. */
+ locale reasons. Lastly, filevercmp is ALWAYS available with gnulib. */
static inline int
cmp_version (struct fileinfo const *a, struct fileinfo const *b)
{