Re: screen -s -/bin/bash

"David T. Pierson" <dtp-tWP3OOf8k3DqlBn2x/[email protected]>
Newsgroups gmane.comp.gnu.screen.user
Message-ID <1393904042.24771%[email protected]>
On Mon, Mar 03, 2014 at 12:32:55PM -0600, Rhys Ulerich wrote:
> I'd like to manually tell screen to fire up login shells in each
> window.  Please note I do not want to change my ~/.screenrc.
> 
> >From reading screen --help it seems like invoking
>     screen -s -/bin/bash
> should do that as I expect it to work like the command
>     :shell -bin/bash
> does within an existing session.
> 
> Seemingly, it does not.  Meaning that the latter setting causes new
> screen windows to include login shells while the former command line
> does not cause the first window to be a login shell.

You write that the *first* window is not a login shell.  What about new
screen windows created after that?  Perhaps the first window's command
is already specified via a screen command in your .screenrc?

screen -s -/bin/bash works for me, but I have:

Screen version 4.01.00devel (GNU) 2-May-06

David
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.