Bug 1657 - Support of ls -v (sort_opts == SORT_VERSION)
Summary: Support of ls -v (sort_opts == SORT_VERSION)
Status: RESOLVED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Standard Compliance (show other bugs)
Version: unspecified
Hardware: PC Linux
: P5 minor
Target Milestone: ---
Assignee: Jens Richter
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-29 07:05 UTC by Jens Richter
Modified: 2011-06-13 00:14 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jens Richter 2010-04-29 07:05:14 UTC
The following modification supports sorting by version:
499,500c499,501
<               /* } else if (sort_opts == SORT_VERSION) { */
<               /* } else if (sort_opts == SORT_EXT) { */
---
>         } else if (sort_opts == SORT_VERSION) {
>                 dif = strverscmp(d1->name, d2->name);
>         /* } else if (sort_opts == SORT_EXT) { */
Comment 1 Denys Vlasenko 2010-06-04 13:16:42 UTC
This needs to wait at least until next version of uclibc is out, with fixed export of strverscmp.
Comment 2 Denys Vlasenko 2011-06-13 00:14:56 UTC
fixed in git by commit f194cc1f3376a26158940d91d0179a3e70233e10