https://bugzilla.novell.com/show_bug.cgi?id=398400
User jengelh@gmx.de added comment
https://bugzilla.novell.com/show_bug.cgi?id=398400#c11
Jan Engelhardt changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|INVALID |FIXED
--- Comment #11 from Jan Engelhardt 2008-06-10 02:15:16 MDT ---
According to man screen(1)
shell command
Set the command to be used to create a new shell. This overrides the
value of the environment variable $SHELL. This is useful if you'd like
to run a tty-enhancer which is expecting to execute the program
speci‐
fied in $SHELL. If the command begins with a '-' character, the shell
will be started as a login-shell. Typical shells do only minimal
ini‐
tialization when not started as a login-shell. E.g. Bash will not read
your "~/.bashrc" unless it is a login-shell.
I seem to remember that, once upon a time, screen did not start a login shell;
just an interactive shell that did not read in ~/.profile / ~/.bash_profile, so
I changed it to "-bash". Indeed not having 'shell -bash' in .screenrc causes
all my (personal) aliases from ~/.bash_profile to be absent. (Who would even
want that? For non-interactive screening, e.g. with the -m parameter, *in that
case* login shell could be skipped.)
Using 'shell -/bin/bash' solves the $SHELL problem.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.