1 .TH zpm-vercmp 8 2019-02-26 "ZPM 0.4"
3 zpm-vercmp \- compare strings with version numbering
5 .B zpm vercmp \fR[\fB-q\fR] \fIstring1 string2\fR
7 \fBzpm-vercmp\fR compares its arguments, using
8 version numbering semantics. It can operate in
9 test mode or search mode. In search mode, activated with \-G or \-L
10 it will print the highest or lowest version string to stdout.
12 In test mode, it compares all the arguments, and prints '0' if they are all
13 equal, '-1' if they are in version order, and 1 if they are out of order.
14 Adjacent identical version strings are considered both equal and in order.
15 Additionally in test mode,
16 the process will exit 0 if the strings are all equal, 1 if the
17 strings are not in order, and 2 if they are in order.
21 write nothing to stdout. The program will still exit with the
25 Print the largest argument version string found.
28 Print the smallest argument version string found.
32 zpm-vercmp a b -> "-1"
37 if the strings are all equal
40 if the strings are not in version order
43 if the strings are in version order