bin/146916: [patch] sh(1) uses dumb terminal in single-user mode
guyyur at gmail.com
Mon May 24 13:00:11 UTC 2010
The following reply was made to PR bin/146916; it has been noted by GNATS.
From: Guy Yur <guyyur at gmail.com>
To: bug-followup at FreeBSD.org, guyyur at gmail.com
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
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
patch < /path/to/patch.txt
possible fixes to revision 206182 'bin/sh/options.c'
add the "dumb" entry to etc/termcap.small to silence el_init()
instead of enabling -o emacs in 'bin/sh/options.c', create
set -o emacs
add to /usr/src/etc/root/dot.profile
this way -o emacs will be called after /.profile has set a valid TERM
already done this way in /usr/src/share/skel
More information about the freebsd-bugs