freebsd at edvax.de
Sat Mar 30 02:51:22 UTC 2019
On Fri, 29 Mar 2019 19:14:11 -0400, Lowell Gilbert wrote:
> Mayuresh Kathe <mayuresh at kathe.in> writes:
> > Are there still people on this list using the "ed" text-editor?
> > If yes, is it just for kicks? Or is there any real advantage over "vi"?
> Probably pretty few people using it any more.
> Remember that it's actually just a different flavor of vi (same
> executable), so getting rid of it would be silly.
I think you're confusing vi and ex here (which are the same
executable), but ed is something different (a different program).
But I think the reason for this confusion is that using ed
feels like using vi's ex mode or the ex standalone program. :-)
% hardlinks.sh /usr/bin | grep vi
825093: ex nex nvi nview vi view
Compare the locations:
% which ed ee vi ex
/bin/ed <- the standard editor
/usr/bin/ee <- easy to use visual editor
/usr/bin/vi <- the "normal" vi
/usr/bin/ex <- the "ex mode" vi
The standard editor, ed, is the only one present in / (which /bin
is part of), whereas the others are located in /usr, which _might_
be a different partition, not accessible in a worst-case scenario
where you only have / read-only and nothing else. Of course, this
is mostly only historically important, because you won't find
"functionally separated partitions" based on UFS very often, and
modern partitioning approaches as well as ZFS typically don't have
that kind of problem.
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
More information about the freebsd-questions