Re: screen -s -/bin/bash

2014-03-03 Thread Rhys Ulerich
> You write that the *first* window is not a login shell. What about new > screen windows created after that? No dice. > Perhaps the first window's command > is already specified via a screen command in your .screenrc? It's not. > Screen version 4.01.00devel (GNU) 2-May-06 Same here: Screen v

Re: screen -s -/bin/bash

2014-03-03 Thread David T. Pierson
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 ex

Re: screen -s -/bin/bash

2014-03-03 Thread Kevin Van Workum
$ cat .bash_profile | sed -e '/^#/d' -e '/^$/d' if [ -f ~/.bashrc ]; then . ~/.bashrc fi PATH=$PATH:$HOME/.local/bin:$HOME/bin export PATH echo "this is a login shell" $ cat .bashrc | sed -e '/^#/d' -e '/^$/d' if [ -f /etc/bashrc ]; then . /etc/bashrc fi $ cat .screenrc cat: .screenrc: No such fi

Re: screen -s -/bin/bash

2014-03-03 Thread Rhys Ulerich
> Hmm. "screen -s -/bin/bash" starts a login shell for me. Bizarre. Do you have something in your ~/.screenrc forcing that? Or are your ~/.bashrc and ~/.profile setup to make those cases indistinguishable? > Did you try putting '-/bin/bash' in single quotes. That should escape the dash. No cha

Re: screen -s -/bin/bash

2014-03-03 Thread Kevin Van Workum
Hmm. "screen -s -/bin/bash" starts a login shell for me. I have: $ screen --version Screen version 4.01.00devel (GNU) 2-May-06 Did you try putting '-/bin/bash' in single quotes. That should escape the dash. On Mon, Mar 3, 2014 at 1:59 PM, Rhys Ulerich wrote: > > What about just "screen -s /bi

Re: screen -s -/bin/bash

2014-03-03 Thread Rhys Ulerich
> What about just "screen -s /bin/bash"? It doesn't force running as a login shell. - Rhys ___ screen-users mailing list screen-users@gnu.org https://lists.gnu.org/mailman/listinfo/screen-users

Re: screen -s -/bin/bash

2014-03-03 Thread Kevin Van Workum
What about just "screen -s /bin/bash"? On Mon, Mar 3, 2014 at 1:50 PM, Rhys Ulerich wrote: > Perhaps my misunderstanding is that I see no way to escape the leading > hyphen on "/bin/bash": > > > screen -s -/bin/bash > > ? > > Things like > screen -s=-/bin/bash > and > screen -s -- -/bin

Re: screen -s -/bin/bash

2014-03-03 Thread Rhys Ulerich
Perhaps my misunderstanding is that I see no way to escape the leading hyphen on "/bin/bash": > screen -s -/bin/bash ? Things like screen -s=-/bin/bash and screen -s -- -/bin/bash are a bust. - Rhys ___ screen-users mailing list screen-users@

screen -s -/bin/bash

2014-03-03 Thread Rhys Ulerich
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 exist