Equal and unequal versions
Lionel Elie Mamane <[email protected]>
| Newsgroups | gmane.linux.debian.curiosa |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I've just realised a funny consequence of the introduction of "~" in
versions: It is not true anymore that if ${A} and ${B} are two equal
versions, then ${A}${C} and ${B}${C} are equal...
master@bagnat:~$ dpkg --compare-versions 5.2.0 eq 5.2. && echo true || echo false
true
master@bagnat:~$ dpkg --compare-versions 5.2.0~ eq 5.2.~ && echo true || echo false
false
--
Lionel