tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Adding a simple editor to the base system



On Thu, 12 Feb 2009 19:46:07 +0000
"David Brownlee" <abs%absd.org@localhost> wrote:
> From: D'Arcy J.M. Cain <darcy%druid.net@localhost>
> > ------------ File: /usr/bin/edit -----------
> > #! /bin/sh
> > exec ${EDITOR:-/usr/bin/vi}
> 
> You may have missed a ":)" there...
> 
> Regarding 'vi' as a reasonable default when an inexperienced user types 
> 'edit' could be regarded as a joke in rather poor humour...

Nope.  I said "base system" not the NetBSD Desktop system.  I felt that
it was reasonable for the Desktop install to change the default by
setting the EDITOR variable.

Someone else pointed out a rather convoluted security problem that
might make this a bad idea although I am pretty sure that if you had a
root user dumb enough to let you change his environment and run
commands on your say-so you probably have bigger problems.

-- 
D'Arcy J.M. Cain <darcy%NetBSD.org@localhost>
http://www.NetBSD.org/


Home | Main Index | Thread Index | Old Index