1) remove your .tmux.conf file (to simplify things)
2) create a file with just the word "new" in it called cmds
3) start tmux with the command:
tmux start-server \; source cmds
4) do 'tmux attach' (question: why does it detach in the first place?)
5) do 'printenv | grep -i SSH' and observe the missing SSH variables
or:
1) remove your .tmux.conf
2) create a file with just the word "new" in it called cmds
3) start tmux with the command "tmux".
4) do "printenv | grep -i SSH" and observe that the SSH vars *are* present
5) do "tmux source cmds" (from within the tmux window)
6) switch to the new session and window
7) do "printenv | grep -i SSH" and observe the missing SSH env vars
so is it a bug? i.e. is 'source' supposed to accept *all* commands
and do the right thing?
or a documentation bug? i.e. "new-session" isn't allowed in a source'ed file?
note that if you extend the 2nd experiment and create a file called cmds2
with "neww" (new-window) in it, and then do "tmux source cmds2", the
shell in the new window *does* have the SSH env vars while the shell
created by the original 'new' (new-session) command does *not*.
thoughts/comments?
/mark
This communication and any attachments may contain confidential/proprietary
information and is intended for information purposes only. It is not an
invitation or offer to purchase interests from Diamondback. Any representation
to the contrary is unintentional. This communication is intended only for the
person(s) to whom it is addressed. If you are not the intended recipient you
are hereby notified that you have received this document in error and that any
review, dissemination, distribution, or copying of this message or any
attachments is not permitted. If you have received this in error, please notify
the sender immediately by e-mail and delete this message. All e-mails sent to
or received from this address will be received by Diamondback's company e-mail
system and is subject to archival and possible review by someone other than the
recipient. This notice is automatically appended to each e-mail message leaving
Diamondback.
------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
tmux-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-users