Re: FVWM: Detecting FVWM version

From: Mikhael Goikhman <migo_at_homemail.com>
Date: Fri, 2 Jul 2004 11:48:20 +0000

On 01 Jul 2004 23:33:14 +1000, Scott Smedley wrote:
>
> > > ie. This is illegal syntax, but shows what I'd like to do.
> > >
> > > Test (Version >= 2.5.12) Echo yup
> > >
> > > Anyone know how I could do something like that?
> >
> > Use $[version.num] in a piperead.
> > You will need to parse the result into individual numbers in order
> > to do arithmetic compares.
>
> Hehe! That's what I figured - I was hoping there was a cleaner way. :)
>
> I wonder if we should create a new version variable like Perl does
> to aid in these sorts of comparisons?
>
> ie. 2.005012
>
> Hmmm, maybe not. I'm not sure anyone else would find it useful.

No, we should just implement Version ">=", ">", "==", "<", "<=" syntax.
It is in my todo list somewhere in the middle. Feel free to implement it.

Regards,
Mikhael.
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Fri Jul 02 2004 - 06:51:25 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:56 BST