]> pd.if.org Git - zpackage/blob - doc/zpm-vercmp.8
9a31fac7e2c495cdfebd3d4fcefda213c08322eb
[zpackage] / doc / zpm-vercmp.8
1 .TH zpm-vercmp 8 2018-12-10 "ZPM 0.4"
2 .SH NAME
3 zpm-vercmp \- compare strings with version numbering
4 .SH SYNOPSIS
5 .B zpm vercmp \fR[\fB-q\fR] \fIstring1 string2\fR
6 .SH DESCRIPTION
7 \fBzpm-vercmp\fR compares its first two arguments, using
8 the usual version numbering semantics.  It will write
9 the result of the comparison to stdout, 0 if the arguments
10 compare equal, -1 if the first is greater, and 1 if the
11 second is greater.
12 .SH OPTIONS
13 .TP
14 \-q
15 write nothing to stdout.  The program will still exit with the
16 usual exit status
17 .SH EXAMPLES
18 .PP
19 .nf
20 zpm-vercmp a b -> "1"
21 .fi
22 .SH EXIT STATUS
23 0 if the two strings compare equal
24 -1 if the first string is greater than the second
25 1 if the second string is greater then the first
26 .SH FILES
27 None
28 .SH ENVIRONMENT
29 None
30 .SH AUTHOR
31 Nathan Wagner
32 .SH SEE ALSO
33 zpm(8)