[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

screen exit problem when using login shell



Intrigued by an article on Freshmeat regarding a minimalist X setup[1],
I decided to try out screen. I've got it installed (apt-get is my
friend!), and when I went to edit my .screenrc, I discovered I already
had one with a number of default settings. I happily accepted most of
them, went and defined the screens I was going to use, and started it
up.

However, when I wanted to exit and pressed "C-a C-\", nothing happened.
I discovered the only way I could exit was by killing each screen (and,
in the process, discovered that one of those default settings had
overridden the 'C-a k' combo described in the man page!).

I have discovered through trial and error that the setting
    # make the shell in every window a login shell
    shell -$SHELL
disables the "C-a C-\" combination for exiting. 

I've looked through the documentation, and I can do a "C-a D D" to
detach and logout -- but sometimes I actually want to *exit* screen.

(I like the login shells because I have a fairly large number of aliases
and environmental variables in by .bash_profile that make the absence of
a login shell unproductive.)

Anybody seen this? is there a workaround?
    
[1] http://freshmeat.net/articles/view/581/

-- 
Matthew Weier O'Phinney
matthew@weierophinney.net



Reply to: