I discussed this with upstream and he agreed that it would be a good
idea to have a way to do exact matches, but it needs to be implemented
carefully and for all targets (sessions, windows, etc). He added an item
to the TODO list so that it doesn't get forgotten:

 
http://sourceforge.net/p/tmux/tmux-code/ci/7581762c8e07b18726933616ac92458f9e74d4c6/

A future version of tmux may drop substring matches by default and
require fnmatch-style patterns for such matches.

As a workaround, you can do exact session matches with list-sessions,
e.g.:

 tmux list-sessions -F "#{session_name}" | grep -q "^${myname}$"

Cheers,
-- 
Romain Francoise <[email protected]>
http://people.debian.org/~rfrancoise/


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to