top | item 5605948

Version 1.8 of GNU ed released

63 points| lelf | 13 years ago |groups.google.com | reply

24 comments

order
[+] sramsay|13 years ago|reply
"* Ed now stops reading stdin when reaching real End Of File the first time. (Before it needed to reach EOF twice)."

Once? You've gotta be kidding. In older, hardcore versions, ed would BLOW RIGHT PAST your first EOF. It would say, "So long, sucka!" to your first EOF. It would assume you weren't serious with that first one, BECAUSE YOU WEREN'T.

What ed was looking for was EOT (end of tape). Because that was serious. When it saw EOF, it thought, "Oh, for fuck's sake. It's amateur hour." Now ed is apparently all about "user friendliness."

This is bullshit.

[+] dhimes|13 years ago|reply
Thank you. You made my morning.
[+] cema|13 years ago|reply
A great example of a joke which works in HN. Some don't but this one does. Thank you.
[+] zurn|13 years ago|reply
ed is actually really handy in shell scripts when you want change something in a text file, and want to navigate in the text by following landmarks. Eg. if you are editing an .ini file the sed or awk methods are much more cumbersome, with ed it's just a couple of navigation commands and a in-place replace and save.

Plus you get to try things out interactively and then paste the working set of commands in your script. it's like sed with a repl, only better!

Example: https://groups.google.com/group/comp.unix.shell/msg/e823e275...

[+] philh|13 years ago|reply
That breaks if the file to include contains a line with just a ., unfortunately. But it's still ridiculously simple, and that's likely not to be a problem in a lot of cases.
[+] ultimoo|13 years ago|reply
This is really cool, thanks!
[+] Mr_T_|13 years ago|reply
But does it have syntax highlighting?
[+] EliRivers|13 years ago|reply
It certainly does. On my system, the whole syntax is highlighted a sort of off-white against a black background.
[+] aeonflux|13 years ago|reply
But does it have multiple cursors?
[+] mhd|13 years ago|reply
You need 'ex' for that, if you can stand the bloat.
[+] RBerenguel|13 years ago|reply
One for each term tab. Or tmux/screen session. How cool is that!?