This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: screen 4.0.3-5 does not respect $SHELL
On 12/10/2010 18:00, Andrew Schulman wrote:
Initially SHELL=/bin/bash when using a link in start menu.From initial bash prompt, i start screen, fresh session. There all kinds of bash misbehavior occur, including ~/.bashrc having no effect. Apparent reason for that is that $SHELL becomes /bin/sh instead of /bin/bash within screen.
A workaround is to start screen asscreen -s /bin/bashor have shell specified in .screenrc. Then bash works as expected. That screen does not respect $SHELL seems to be a bug though.
Thanks to jturney from #cygwin for helping me pinpoint the problem.
-anna
Hm... odd. I'm not able to reproduce this. I have SHELL=/bin/bash both
inside and outside of screen, and I haven't adjusted it either on the
command line or in .screenrc. /etc/screenrc doesn't set it either.
Can anyone else verify this?
I can reproduce this problem.
The problem seems to be caused by the fact that bash sets SHELL, but does not
export it by default, so screen doesn't inherit it and sets SHELL=/bin/sh.
jon@byron ~
$ echo $SHELL
/bin/bash
jon@byron ~
$ export -p | grep SHELL
jon@byron ~
$ screen
jon@byron ~
$ echo $SHELL
/bin/sh
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple