Date: Thu, 27 Jun 1996 15:18:13 +0900 (JST) From: Michael Hancock <michaelh@cet.co.jp> To: hackers@freebsd.org Subject: sh understands set -o vi Message-ID: <Pine.SV4.3.93.960627141202.14324A-100000@parkplace.cet.co.jp>
next in thread | raw e-mail | index | archive | help
Boy, have I been out of it. I've been putting the following into root's .login to get ksh/bash vi functionality. if ( -x /usr/local/bin/bash & -x /usr/local/bin/ssh-agent ) then setenv ENV "$HOME/.bashrc setenv SHELL "/usr/local/bin/bash" exec /usr/local/bin/ssh-agent /usr/local/bin/bash endif But sh seems to have a lot the features of bash and it's statically linked and lives in /bin, so I'm now using it for the root shell. .profile has this at the end now to get the ssh stuff going... [ -x /usr/local/bin/ssh-agent -a -s /usr/lib/libc.so.3.0 ] && { export ENV SHELL ENV=$HOME/.shrc SHELL=/bin/sh exec /usr/local/bin/ssh-agent /bin/sh } sh does the set -o vi thing and has job control. I think it makes a good safe root shell. mike hancock
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SV4.3.93.960627141202.14324A-100000>