Closed naksyl closed 10 months ago
Usage has -V option but:
-V
~ $ printf '%s\n' 1.1 1.11 1.2 | sort -V sort: unknown sort type
I'm guessing MinGW lacks some libc/posix functions here
Yes, version sorting needs strverscmp, which is a GNU libc thing. We'd need to pull in an implementation.
strverscmp
I've copied strverscmp from musl libc.
sort -V should work now.
sort -V
Usage has
-V
option but:I'm guessing MinGW lacks some libc/posix functions here