X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,SPF_HELO_NEUTRAL X-Spam-Check-By: sourceware.org Message-Id: <201206201453.q5KEruLu009866@localhost.localdomain> to: cygwin AT cygwin DOT com From: Tom Rodman Reply-to: cygwin AT cygwin DOT com Subject: Re: GNU screen not seeing $SHELL env var? In-reply-to: <4FE1D93E.5060108@redhat.com> References: <201206201320 DOT q5KDKWp4005645 AT localhost DOT localdomain> <4FE1D93E DOT 5060108 AT redhat DOT com> Date: Wed, 20 Jun 2012 09:53:56 -0500 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Wed 6/20/12 8:07 MDT Eric Blake wrote: > On 06/20/2012 07:20 AM, Tom Rodman wrote: > > > $ echo $SHELL > > /bin/bash > > $ bash -c 'echo SHELL: $SHELL' # does this prove SHELL is exported? > > SHELL: /bin/bash > > No. And in fact, bash does not export SHELL by default, but defaults to > defining SHELL as a shell-local variable. You have to explicitly export > it yourself if you want child processes to see it. OK. Thanks, good to know that. -- Still, not sure why I have to export the SHELL var to GNU screen now since in the past several years I have not done this. Recently I stopped using 'putty -ssh localhost' for my terminal, and I'm using 'rxvt' instead, but I can not see why that would matter. In Linux, 'screen' sets up login shells correctly, I use the same ~/.screenrc for both cygwin and linux, and I'm not exporting SHELL to screen in linux. Non cygwin question: what is the best way to tell GNU screen to read /etc/passwd to get SHELL, and start all new screen windows with login shells? -- thanks, Tom -- 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