Stray 'list-sessions' command issued to local shell after exiting remote tmux
By Steve.Meida.K... on August 01, 2012 15:37 (imported from Google Code)
I'm running tmux on a remote Linux machine. When I exit the remote session I get a stray "list-sessions" tmux command sent to the local shell. This only happens when I use the -C option. I think it's something iTerm is injecting after the tmux session has ended.
What steps will reproduce the problem?
- Run a remote tmux session via ssh: 'ssh -t {remote} bin/tmux -C'
- Quit the remote shell gracefully (ie., 'exit')
What is the expected output? What do you see instead?
No output is expected. What I get is a stray 'list-sessions' command
issued to the local shell: list-sessions -F "#{session_name}"
What version of the product are you using? On what operating system?
Local: iTerm2 Build 1.0.0.20120724
Mac OS X Lion 10.7.4 (11E53)
Remote: tmux 1.7 (tmux-for-iTerm2-20120726.tar.gz)
Linux detroit.arbor.net 2.6.22.19-vs2.2.0.7 #2 (closed) SMP Wed Feb 4 17:02:13 EST 2009 x86_64 x86_64 x86_64 GNU/Linux
Please provide any additional information below.
Example session:
macduff:~$ ssh -t detroit bin/tmux -C
** tmux mode started **
Command Menu
----------------------------
esc Detach cleanly.
X Force-quit tmux mode.
L Toggle logging.
C Run tmux command.
Detached
Connection to detroit closed.
macduff:~$ list-sessions -F "#{session_name}"
-bash: list-sessions: command not found