[PD] [Deken] what is the version comparing syntax?

IOhannes m zmoelnig zmoelnig at iem.at
Mon Mar 20 10:12:06 CET 2017


On 2017-03-20 09:53, Roman Haefeli wrote:
> Hey
> 
> How does Deken compare versions? I noticed that Deken interprets:
> 
> 1.1.1 > 1.1
> 
> and
> 
> 0.1~git20170101 > 0.1
> 
> Looks similar to the output of the sort command. Is it actually simply
> an alphabetical sort?

no. deken *tries* to do a semantic sort.

this is done using tcl's "lsort -dictionary" [1].

it correctly sorts 1.10 after 1.1.1 but might have some more problems
(e.g. your 0.1~git20170101 > 0.1 example).

please file a bug-report, if you think this too annoying.


gfmasdr
IOhannes

[1] https://www.tcl.tk/man/tcl8.4/TclCmd/lsort.htm#M6

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20170320/7434afff/attachment.sig>


More information about the Pd-list mailing list