filevercmp
g20151117Compare version strings as in sort --version-sort
Compare version strings: This function compares strings S1 and S2: By PREFIX in the same way as strcmp. Then by VERSION (most similarly to version compare of Debian's dpkg). Leading zeros in version numbers are ignored. If both (PREFIX and VERSION) are equal, strcmp function is used for comparison. So this function can return 0 if (and only if) strings S1 and S2 are identical. It returns number >0 for S1 > S2, 0 for S1 == S2 and number <0 for S1 < S2.
Origin: sysutils/filevercmp
Category: sysutils
Size: 47.0KiB
License: GPLv3
Maintainer: jwb@FreeBSD.org
Dependencies: 0 packages
Required by: 0 packages
Website: github.com/ekg/filevercmp
$
pkg install filevercmpMore in sysutils
py311-azure-cli-base1.0.0
Shared namespace for py-azure-* portspy311-psutil7.1.3
Process utilities module for Pythonpolkit127
Framework for controlling access to system-wide componentsp5-File-Which1.27
Portable implementation of which(1) in Perlkf6-kwallet6.22.0
Safe desktop-wide storage for passwordsphp84-fileinfo8.4.16
The fileinfo shared extension for phprubygem-bundler2.7.2,1
Tool that manages gem dependencies for Ruby applicationsphp84-posix8.4.16
The posix shared extension for phppy311-filelock3.20.1
Platform independent file lockpy311-distro1.9.0
OS platform information API