Hacker News new | past | comments | ask | show | jobs | submit login

Oh, heretics! How dare they leave ed out of the list [1]?

[1] https://github.com/bmatzelle/gow/wiki/executables_list




ED IS THE STANDARD UNIX EDITOR! IT MAKES THE SUN SHINE AND THE SKY BLUE AND THE GRASS GREEN!


I DON'T NEED TO SEE THE STATE OF THE FILE! I KNOW THE STATE OF THE FILE! I JUST NEED YOU TO CHANGE THE FILE.


  william@aldebaran ~ $ ed
  bash: ed: command not found



I recently decided to learn ed, as I felt it couldn't hurt to be familiar with it, and I was surprised to see that it wasn't installed in Arch Linux by default.


If one has bash as the default shell, why not ex as the standard line-oriented text editor?

Postscript - ex is the version of ed rolled up in vim, which extends the command set of ed. vi, by contrast, handles colon commands by invoking ed externally.


"ex is the version of ed rolled up in vim, which extends the command set of ed. vi, by contrast, handles colon commands by invoking ed externally."

Actually vi and ex came about at the same time. You can see the POSIX standard mentions [1] ex and vi (not vim) together, and you can also refer to [2], under the "First appeared" column.

[1] http://pubs.opengroup.org/onlinepubs/9699919799/utilities/ex...

[2] http://en.wikipedia.org/wiki/List_of_Unix_utilities


Indeed, there is a mistake in what I wrote. What I should have said is that Bill Joy wrote ex, and then he used this implementation to write vi. Vim is like vi in that it comes with an ex built in, which is an extension of Bill Joy's ex.


IIRC, I became interested in ed after reading about the Plan 9 editor Sam, which was described as "ed on steroids, lots of steroids"[1]. Sadly, I never got around to trying Sam.

[1]http://sam.cat-v.org/




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: