| Summary: | Support of ls -v (sort_opts == SORT_VERSION) | ||
|---|---|---|---|
| Product: | Busybox | Reporter: | Jens Richter <richter> |
| Component: | Standard Compliance | Assignee: | Jens Richter <richter> |
| Status: | RESOLVED FIXED | ||
| Severity: | minor | CC: | busybox-cvs |
| Priority: | P5 | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Host: | Target: | ||
| Build: | |||
This needs to wait at least until next version of uclibc is out, with fixed export of strverscmp. fixed in git by commit f194cc1f3376a26158940d91d0179a3e70233e10 |
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) { */