Subject: Re: Korn shell behaviour
To: <>
From: David Laight <david@l8s.co.uk>
List: netbsd-users
Date: 04/12/2002 15:43:00
On Fri, Apr 12, 2002 at 12:18:52PM +1000, Richard Grace wrote:
> 
> But, logging in as root (with /bin/csh as default shell) I cannot exec
> ksh and set vi commands in one statement as such:
> 
>   # exec ksh -o vi
> 
> and must instead do:
> 
>   # exec ksh
>   # set -o vi

The 'problem' is (probably) that the netbsd ksh 'supports' (ie has
been broken to) execute commands from the environment variable 'ENV'
whenever it is started.

This gets set to $HOME/.shrc in /.profile
and /root/.shrc contains 'set -o emacs'.

	David

-- 
David Laight: david@l8s.co.uk