# Gentoo Archives: gentoo-pms

From: "Ulrich Müller" gentoo-pms@l.g.o [gentoo-pms] [PATCH] pkg-mgr-commands.tex: Two small fixes for version commands. Tue, 22 May 2018 17:21:39 23300.20892.374921.619604@a1i15.kph.uni-mainz.de
 1 Version separators can consist of several characters. Clarify this 2 in the regexp accordingly. 3 4 A range of components or separators is not a "range of versions". 5 Say "range" only, because the meaning is clear from context. 6 --- 7 pkg-mgr-commands.tex | 6 +++--- 8 1 file changed, 3 insertions(+), 3 deletions(-) 9 10 diff --git a/pkg-mgr-commands.tex b/pkg-mgr-commands.tex 11 index 01c0c6d..be05322 100644 12 --- a/pkg-mgr-commands.tex 13 +++ b/pkg-mgr-commands.tex 14 @@ -930,7 +930,7 @@ a series of version components and version separators. 15 16 A version component consists either purely of digits (\t{[0-9]+}) or purely of uppercase and 17 lowercase ASCII letters (\t{[A-Za-z]+}). A version separator is either a string of any other 18 -characters (\t{[\textasciicircum A-Za-z0-9]}) or it occurs at the transition between a sequence 19 +characters (\t{[\textasciicircum A-Za-z0-9]+}), or it occurs at the transition between a sequence 20 of digits and a sequence of letters, or vice versa. In the latter case, the version separator is 21 an empty string. 22 23 @@ -948,8 +948,8 @@ followed by a hyphen (\t{-}), which in turn is optionally followed by another un 24 25 A single integer specifies a single component or separator index. An integer followed by a hyphen 26 specifies all components or separators starting with the one at the specified index. Two integers 27 -separated by a hyphen specify a range of versions starting at the index specified by the first 28 -and ending at the second, inclusively. 29 +separated by a hyphen specify a range starting at the index specified by the first and ending at 30 +the second, inclusively. 31 32 \begin{description} 33 \item[ver_cut] Takes a range as the first argument, and optionally a version string as the second. 34 -- 35 2.17.0