Add a -v flag for ls(1) which sorts entries following a natural ordering using strverscmp(3) (e.g. "bloem1 bloem9 bloem10" as opposed to "bloem1 bloem10 bloem9").
Update manual page for ls(1).
Add test for ls -v.
Differential D36407
ls: `-v` flag obiwac_gmail.com on Aug 31 2022, 7:48 PM. Authored by Tags None Referenced Files
Details
Add a -v flag for ls(1) which sorts entries following a natural ordering using strverscmp(3) (e.g. "bloem1 bloem9 bloem10" as opposed to "bloem1 bloem10 bloem9"). Update manual page for ls(1). Add test for ls -v. Tested through the tests I wrote.
Diff Detail
Event Timeline
Comment Actions One more comment about the manpage. Did you run "mandoc -Tlint" over it?
Comment Actions I have not, I didn't know about that, thanks for pointing me to it! I'll fix that in a bit. May I fix all the "STYLE: useless macro: Tn" errors or do I ignore those? Comment Actions I suggest you do this in a separate commit to not bloat this one too much. |