On Tue, Dec 14, 2010 at 04:47:25PM -0500, Mark T. Kennedy wrote: > 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
I'm not clear on where these SSH variables are coming from initially, can you give the steps to reproduce by exporting a variable like ABCDEF that definitely won't be set by ssh or in any shell profile files? > > 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? new-session is allowed in a configuration file, but the question is where it should get the environment from. In this case because you run "tmux source" from the command line it should have the environment from the command client and be able to access it as if you had typed "tmux new", so it is likely this is a bug. > > 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 > tmux-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/tmux-users ------------------------------------------------------------------------------ Forrester recently released a report on the Return on Investment (ROI) of Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even within 7 months. Over 3 million businesses have gone Google with Google Apps: an online email calendar, and document program that's accessible from your browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users