Package: tmux
Version: 1.8-3
Severity: wishlist

Dear Maintainer,

Please forward this to wherever upstream is, thanks!

tmux has a feature/bug thats slightly irritating and I haven't seen a
way to tell it to not irritate me: Commands like has-session and
attach-session, and probably others dealing with sessions, do a match
on the session name, instead of only using the name supplied.
So a session named "longtest" can be accessed by just giving tmux
"long" as a session name.

This can be nice for lazy people, but there is no way to turn this
off. Sometimes, if i ask tmux with has-session, i want to be sure if
it has this one specific session supplied by me, not one that
accidently matches it too.

Example:

########################################################################
ganneff@linws03:~$ tmux new-session -d -s longtest
ganneff@linws03:~$ tmux ls
longtest: 1 windows (created Fri Aug  2 11:10:13 2013) [106x93]
ganneff@linws03:~$ tmux has-session -t longtest ; echo $?
0
ganneff@linws03:~$ tmux has-session -t long
0
########################################################################

The first has-session is right. The second is wrong, IMO.

Now, as it can be nice to be lazy, and it would change for everyone,
it would probably be nice to make the "exact match only" for session
handling optional, like having an extra parameter to all commands that
deal with sessions. (Plus something for tmux.conf, I guess, so one can
set it globally)..

--
bye Joerg


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to