.TH zpm-vercmp 8 2018-12-10 "ZPM 0.4" .SH NAME zpm-vercmp \- compare strings with version numbering .SH SYNOPSIS .B zpm vercmp \fR[\fB-q\fR] \fIstring1 string2\fR .SH DESCRIPTION \fBzpm-vercmp\fR compares its first two arguments, using the usual version numbering semantics. It will write the result of the comparison to stdout, 0 if the arguments compare equal, -1 if the first is greater, and 1 if the second is greater. .SH OPTIONS .TP \-q write nothing to stdout. The program will still exit with the usual exit status .SH EXAMPLES .PP .nf zpm-vercmp a b -> "1" .fi .SH EXIT STATUS 0 if the two strings compare equal -1 if the first string is greater than the second 1 if the second string is greater then the first .SH FILES None .SH ENVIRONMENT None .SH AUTHOR Nathan Wagner .SH SEE ALSO zpm(8)