On 2013–07–20 Thomas Adam wrote:

> > I tried it and it works. It feels a little fiddly, though; to create
> > a set of shell commands which check for the tmux version. Maybe you
> > had something more elegant in mind.
> 
> No.  That's how to do it.

Okay.

> > Another question in this context: How to determine the tmux version
> > reliably? I just figured that some versions support the -V flag, but
> > not all versions do.
> 
> If you're trying to support versions of tmux without -V, then you're
> doing it wrong since that version of tmux is old.

Debian stable (just released) ships with 1.6, which means even
up-to-date servers don't necessarily ship with a current tmux
version. Let alone the not so up-to-date servers.

> Likewise, anything before tmux 1.8 is quite old also, and I would
> consider upgrading.

I do not administrate most of the machines. The workstations have
fairly new versions >=1.7 but on the servers I am really happy if
tmux is installed at all.

> Seriously.

It's not practical to maintain current versions of the required
software tools in the home directory. I did that for many years, but
when the number of remote machines grew I gave up on keeping the
software up-to-date when I don't have admin rights. Instead I tried
to make the config files as portable as possible.

Thanks for your quick response and the if-shell trick.

Marco


------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to