Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Version String Comparison



TJ Luoma wrote on Thu, Nov 19, 2015 at 17:16:08 -0500:
> 
> I am looking for a zsh way to compare version numbers, which is
> smart enough to know that, for example
> 
> "6.7.0.36" is less than "6.7.0.0044"

If I didn't care about portability to other operating systems, I'd
probably just use the package manager's version comparator: 'dpkg
--compare-versions', 'pkg version --test-version', or local equivalent.



Messages sorted by: Reverse Date, Date, Thread, Author