[Top][All Lists]

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

Re: screen -s -/bin/bash

From: Kevin Van Workum
Subject: Re: screen -s -/bin/bash
Date: Mon, 3 Mar 2014 14:53:46 -0500

$ cat .bash_profile | sed -e '/^#/d' -e '/^$/d'
if [ -f ~/.bashrc ]; then
. ~/.bashrc
export PATH
echo "this is a login shell"

$ cat .bashrc | sed -e '/^#/d' -e '/^$/d'
if [ -f /etc/bashrc ]; then
. /etc/bashrc

$ cat .screenrc
cat: .screenrc: No such file or directory

On Mon, Mar 3, 2014 at 2:36 PM, Rhys Ulerich <address@hidden> wrote:
> 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 change.  Bash strips the single quotes providing the same arguments to the screen binary as without the single quotes.  Any escaping will have to be at the screen level.

Thanks for the suggestions.

- Rhys

reply via email to

[Prev in Thread] Current Thread [Next in Thread]