* Peter Teichman had this to say on [08 Nov 2009, 11:48:51 -0500]: > I'd like a way to uniquely identify the current screen process while > evaluating .screenrc. The specific problem I'm trying to solve is tying an > ssh-agent process to the life of a set of screens. > > If I could get the current (SCREEN) process id inside .screenrc, this would > have a two line solution: > > setenv SSH_AUTH_SOCK $HOME/.screen-ssh-agent.$PID > screen 10 ssh-agent -a $SSH_AUTH_SOCK $SHELL > > To that end, I've added a PID variable to process.c:Parse(). It's a simple, > two-line patch. > > You can find the change as > commit 9ac452ce309a7d60fe1bd7d77b65146287f33c0f in the "pid" branch here: > git://github.com/pteichman/screen.git > > I branched from 4.0.3, but it applies cleanly against master. >
I have committed the change in master (9763857d8857a14f2a20c05e5ed552ca47bba3d8). (my git-fu is weak, and the changeset is small, so I manually made the change and committed, instead of pulling) I have also added support for evaluation of '$STY' (the next commit), which might also be useful for some tasks. Thanks for the patch! Feel free to send additional patches for useful things! ;) Sadrul