[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Equal and unequal versions



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


Reply to: