The following reply was made to PR bin/146916; it has been noted by GNATS. From: Guy Yur <guy...@gmail.com> To: bug-follo...@freebsd.org, guy...@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 _______________________________________________ freebsd-bugs@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"