> 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
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
$ 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
> 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
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
> 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
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
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@
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