3.2 and 3.2a should be pretty much the same, only minor bug fixes. If you
need to know the difference you would need to check for the "a" as well.

On Sun, 27 Apr 2025, 11:24 japin li, <japinli...@gmail.com> wrote:

> After some digging, it may not work because we have versions such as 3.2
> and 3.2a.
>  If we remove all non-numbers, then 3.2a and 3.2 are combined. I'm not
> sure about this.
>
> On Saturday, April 26, 2025 at 2:29:52 PM UTC+8 japin li wrote:
>
>>  Thanks, it's pretty cool.
>>
>> On Sunday, April 20, 2025, Nicholas Marriott <nicholas...@gmail.com>
>> wrote:
>>
>>> Couldn't you just remove all non-numbers from the string to get a number
>>> version?
>>>
>> On Fri, 18 Apr 2025, 06:53 japin li, <japin...@gmail.com> wrote:
>>>
>> Hi, Nicholas
>>>>
>>>> I found that Tmux has a version variable in string format (like
>>>> next-3.5). However, this does not facilitate easier version comparison.
>>>> Currently, I use the following to do version comparsion:
>>>>
>>>> %if #{>=:#{s|next-||:version},3.5}
>>>> do something
>>>> %endif
>>>>
>>>>  Would it be possible to add a numeric server version? Or is there
>>>> another effective way to compare versions?
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "tmux-users" group.
>>>>
>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to tmux-users+unsubscr...@googlegroups.com.
>>>
>>>
>>>> To view this discussion, visit
>>>> https://groups.google.com/d/msgid/tmux-users/8e11fff3-e0df-4266-aaf4-1977971cdc04n%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/tmux-users/8e11fff3-e0df-4266-aaf4-1977971cdc04n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> --
> You received this message because you are subscribed to the Google Groups
> "tmux-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to tmux-users+unsubscr...@googlegroups.com.
> To view this discussion, visit
> https://groups.google.com/d/msgid/tmux-users/f98d5057-8566-4d91-a8f3-1100ded98fecn%40googlegroups.com
> <https://groups.google.com/d/msgid/tmux-users/f98d5057-8566-4d91-a8f3-1100ded98fecn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tmux-users+unsubscr...@googlegroups.com.
To view this discussion, visit 
https://groups.google.com/d/msgid/tmux-users/CAEdLfcFYH%3Dkztbk8%3Dij3qPsErMgAjYVSBAv5eOfX00W0_FwPXQ%40mail.gmail.com.

Reply via email to