Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 May 2010 13:00:11 GMT
From:      Guy Yur <guyyur@gmail.com>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/146916: [patch] sh(1) uses dumb terminal in single-user mode
Message-ID:  <201005241300.o4OD0BBw003676@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/146916; it has been noted by GNATS.

From: Guy Yur <guyyur@gmail.com>
To: bug-followup@FreeBSD.org, guyyur@gmail.com
Cc:  
Subject: Re: bin/146916: [patch] sh(1) uses dumb terminal in single-user mode
Date: Mon, 24 May 2010 15:30:54 +0300

 the spacing for the Fix field was lost, reformatted below
 
 Fix:
 looking in NetBSD, /bin/sh calls setenv/unsetenv for "TERM" before el_init()
 and calls el_set(el, EL_TERMINAL, term) when TERM changes.
 
 I have made patches using the changes against bin/sh in NetBSD.
 Only the TERM support changes are included in the patches.
 The patches are against head, svn revision 208452
 
 cd /usr/src/bin/sh
 patch < /path/to/patch.txt
 
 possible fixes to revision 206182 'bin/sh/options.c'
 1.
 add the "dumb" entry to etc/termcap.small to silence el_init()
 
 2.
 instead of enabling -o emacs in 'bin/sh/options.c', create
 /usr/src/etc/root/dot.shrc with
   set -o emacs
 
 add to /usr/src/etc/root/dot.profile
   ENV=$HOME/.shrc
   export ENV
 this way -o emacs will be called after /.profile has set a valid TERM
 already done this way in /usr/src/share/skel



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201005241300.o4OD0BBw003676>