delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/06/20/12:27:14

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,SPF_HELO_NEUTRAL,TW_RX
X-Spam-Check-By: sourceware.org
Message-Id: <201206201626.q5KGQUv2015204@localhost.localdomain>
From: Tom Rodman <cygzr AT trodman DOT com>
Reply-to: cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
Subject: Re: GNU screen not seeing $SHELL env var?
In-reply-to: <20120620152445.GI15883@calimero.vinschen.de>
References: <201206201320 DOT q5KDKWp4005645 AT localhost DOT localdomain> <4FE1D93E DOT 5060108 AT redhat DOT com> <201206201453 DOT q5KEruLu009866 AT localhost DOT localdomain> <20120620152445 DOT GI15883 AT calimero DOT vinschen DOT de>
Date: Wed, 20 Jun 2012 11:26:30 -0500
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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 17:24 +0200 Corinna wrote:
> On Jun 20 09:53, Tom Rodman wrote:
> > 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, ...
> 
> Brr.  Why don't you use mintty instead?  rxvt is old, unmaintained,
> and it doesn't support UTF-8.

Oh, I was afraid it might be deprecated, I had tried mintty in the
last few weeks, but was unable to get 'WordChars' setting to work
as well as rxvt's cutchars.

I launch rxvt with a shell script using:

  font_sz=${1:-17}

  cutchars=$'\140'$'\042'$'\047''+-&()*,;<=>?@[]{|}/.:'
    # \140 == `
    # \042 == "
    # \047 == '

    # "Rxvt*cutchars" in ~/.Xdefaults ( usually a link to /etc/skel/.Xdefaults )
    #    but stopped working for me, 1st noticed not working in 2012 or 2011

  exec rxvt \
    -cutchars  $cutchars \
    -backspacekey $'\010' -geometry 100x33 \
    +rv \
    -bg black \
    -fg white \
    -fn "Lucida Console-$font_sz"  \
    -sr -sl 5000 \
    -e /bin/bash --login

I've been unable to get the equivalent of cutchars to work in mintty.
Putty was good at that, but I stopped using putty because of the 'procps' hangs.

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019