Subject: Re: Single user mode: ed(1) or bust
To: Eric d'Alibut <eric.halibut@gmail.com>
From: None <tlaronde@polynum.com>
List: netbsd-users
Date: 05/05/2007 01:04:12
On Fri, May 04, 2007 at 06:47:39PM -0400, Eric d'Alibut wrote:
> On 5/4/07, Hisashi T Fujinaka <htodd@twofifty.com> wrote:
>
> >man ed! ed, man! (sorry, I had to say it)
>
> You're forgiven. <g>
>
> Moving right along, what do *other* knowledgeable NetBSD users to edit
> in single user mode?
It's amazing how useful knowing ed(1) is for example when
programming/scripting (I've seen people relying on Perl to do things
ed(1) does simply---replacing a variable without temporary files etc.).
So learning ed(1) is not wasted.
For the use of vi/ex(1), you need simply to export a decent value of
TERM (for example vt220). The curses lib was extracted from vi at the
beginning, so it is no surprise that vi(1) needs a decent value for
TERM.
Cheers,
--
Thierry Laronde (Alceste) <tlaronde +AT+ polynum +dot+ com>
http://www.kergis.com/
Key fingerprint = 0FF7 E906 FBAF FE95 FD89 250D 52B1 AE95 6006 F40C