Bug 1657

Summary: Support of ls -v (sort_opts == SORT_VERSION)
Product: Busybox Reporter: Jens Richter <richter>
Component: Standard ComplianceAssignee: Jens Richter <richter>
Status: RESOLVED FIXED    
Severity: minor CC: busybox-cvs
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: Target:
Build:

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