Subject: Re: Korn shell behaviour
To: Richard Grace <rgrace@aapt.com.au>
From: Steven M. Bellovin <smb@research.att.com>
List: netbsd-users
Date: 04/11/2002 21:57:44
In message <scb6caec.062@aapt-gwia2.aapt.com.au>, "Richard Grace" writes:
>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 == '/bin/ksh' -o $SHELL == '/usr/bin/ksh' -o $SHELL == '/usr/loc
>al/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='@(#)PD KSH v5.2.14 99/07/13.2'
>
What ksh did you use on Solaris? The real, Dave Korn-authored one? Or
this one, which Dave never touched? There are a fair number of minor
incompatibilities, and one of these days I'm going to get around to
downloading Dave's and compiling it.
--Steve Bellovin, http://www.research.att.com/~smb
Full text of "Firewalls" book now at http://www.wilyhacker.com