Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Jun 2009 16:22:19 +0200
From:      Jonathan McKeown <j.mckeown@ru.ac.za>
To:        freebsd-questions@freebsd.org
Subject:   Re: The question of moving vi to /bin
Message-ID:  <200906241622.19708.j.mckeown@ru.ac.za>
In-Reply-To: <4A420701.5020505@gmail.com>
References:  <4A420701.5020505@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday 24 June 2009 12:59:13 Manish Jain wrote:

> About ed first. I might annoy a few people (which would gladden me in
> this particular case), but ed was just one of Ken Thompson's nightmares
> which he managed to reproduce in Unix with great precision. By no
> stretch of imagination would it qualify as an editor, because an editor
> can meaningfully edit only what it can first show. And ed has never had
> anything to show. A modern operating system like FreeBSD should really
> be kicking ed out of the distribution completely : bad ideas don't have
> to be necessarily perpetuated just for the sake of compliance with the
> original concept of Unix.

Hold on. I didn't claim it was a *good* editor - I was reacting to your 
suggestion that /bin didn't contain an editor at all. ed(1)'s interface is 
certainly minimal, but it's easy enough to list lines in the file you're 
editing, contrary to what you seem to be saying - to list every line of the 
file, try the two characters , l.

However, if you want a more visual editor, perhaps /usr/bin/ee (which is just 
over 10K bigger than /bin/ed) would do?

You also suggested doing away with ed and /rescue/vi altogether. You may not 
need statically-linked tools very often, but when you do need them, you 
*REALLY* need them. Don't suggest throwing them away without thinking through 
the implications.

Jonathan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906241622.19708.j.mckeown>