Subject: Korn shell behaviour
To: None <netbsd-users@netbsd.org>
From: Richard Grace <rgrace@aapt.com.au>
List: netbsd-users
Date: 04/12/2002 11:54:06
This is something which has been on my mind for a long time.
I use the Korn shell, have done for years, and I like vi commands.
When executing ksh, the following things work:
Solaris -> # exec ksh -o vi
FreeBSD -> # exec ksh -o vi
But, on NetBSD, I don't get vi commands. I must do it like this:
# exec ksh
# set -o vi
And, the following does not work in my .profile the same as it
does on Solaris or FreeBSD
if [ $SHELL =3D=3D '/bin/ksh' -o $SHELL =3D=3D '/usr/bin/ksh' -o $SHELL =
=3D=3D '/usr/local/bin/ksh' ]
then set -o vi
fi
Is this the intended behaviour on NetBSD? Is there something
I can do to change this?
KSH_VERSION=3D'@(#)PD KSH v5.2.14 99/07/13.2'
Ta.
Richard.