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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.