News for hackers. Stuff that matters.
Re:Version 1.8 of GNU ed released by sramsay on Thursday April 25, 2013 @08:47AM (#5606838)
"* 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.

Re:Version 1.8 of GNU ed released by kps on Thursday April 25, 2013 @10:17AM (#5607269)
Made me look. Real ed(1) exits on the first EOF.

[1] http://www.tuhs.org/ [2] http://puszcza.gnu.org.ua/software/apout/

Re:Version 1.8 of GNU ed released by saurik on Thursday April 25, 2013 @02:41PM (#5609070)
(EOT also happens to be the character you use to represent EOF; this was largely a joke, possibly referencing that "Ed is the real text editor" rant from decades ago that specifically discussed how difficult it was to exit ed as one of its many features. I found it funny.)
Re:Version 1.8 of GNU ed released by kps on Thursday April 25, 2013 @03:29PM (#5609329)
Yes, I know it was a joke. I just had to check that my memory wasn't acting up. (I actually had to use nothing but ed for real work for a few months in 1985 — makes for good training in regular expressions.) Real ed only requires two EOF (or 'q' commands) if the file has changed, so you don't quit by accident, but driving it by script won't hang.
Re:Version 1.8 of GNU ed released by dhimes on Thursday April 25, 2013 @08:55AM (#5606871)
Thank you. You made my morning.
Re:Version 1.8 of GNU ed released by cema on Thursday April 25, 2013 @09:48AM (#5607107)
A great example of a joke which works in HN. Some don't but this one does. Thank you.
Re:Version 1.8 of GNU ed released by hosay123 on Thursday April 25, 2013 @07:30AM (#5606608)
It's worth avoiding linking to Google Groups entirely, on the basis that the new UI is unusable and that the product will probably be canned soon enough.

GMane is a good community-oriented alternate:

http://thread.gmane.org/gmane.org.fsf.announce/1952

Re:Version 1.8 of GNU ed released by zurn on Thursday April 25, 2013 @02:26AM (#5605962)
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...

Re:Version 1.8 of GNU ed released by philh on Thursday April 25, 2013 @03:38AM (#5606108)
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.
Re:Version 1.8 of GNU ed released by ultimoo on Thursday April 25, 2013 @02:57AM (#5606026)
This is really cool, thanks!
Re:Version 1.8 of GNU ed released by geocar on Thursday April 25, 2013 @02:45AM (#5606006)
A while ago I "minimally ported" the V6 ed to modern systems:

* http://geocar.sdf1.org/ed.c

* http://geocar.sdf1.org/ed.c.orig

I actually prefer ed/ex to screen editors when doing quick fixes because I can still see what's in the terminal (although I still use both emacs and vi as well).

Re:Version 1.8 of GNU ed released by gnuvince on Thursday April 25, 2013 @08:16AM (#5606717)
I use a shell inside Emacs, so I just split my frame.
Re:Version 1.8 of GNU ed released by asdfs on Thursday April 25, 2013 @03:19AM (#5606076)
I found this blog post to be an excellent ingroduction to ed, for the uninitiated: http://blog.sanctum.geek.nz/actually-using-ed/

And of course there's the obligatory: http://www.gnu.org/fun/jokes/ed-msg.txt

Re:Version 1.8 of GNU ed released by jdale27 on Thursday April 25, 2013 @03:11AM (#5606058)
"Ed is the standard text editor."
Re:Version 1.8 of GNU ed released by michaellacorte on Thursday April 25, 2013 @03:39AM (#5606112)
"Ed, the greatest WYGIWYG editor of all."

The first time I read this, I almost fell out of my chair in laughter.

Re:Version 1.8 of GNU ed released by rquantz on Thursday April 25, 2013 @11:08AM (#5607609)
Is this what you're referring to?

https://news.ycombinator.com/item?id=5246071

Re:Version 1.8 of GNU ed released by jdale27 on Thursday April 25, 2013 @01:54PM (#5608753)
Yes.
Re:Version 1.8 of GNU ed released by Mr_T_ on Thursday April 25, 2013 @03:03AM (#5606038)
But does it have syntax highlighting?
Re:Version 1.8 of GNU ed released by EliRivers on Thursday April 25, 2013 @05:05AM (#5606297)
It certainly does. On my system, the whole syntax is highlighted a sort of off-white against a black background.
Re:Version 1.8 of GNU ed released by piqufoh on Thursday April 25, 2013 @05:49AM (#5606401)
I can't get code completion to work :-(
Re:Version 1.8 of GNU ed released by rufus_t on Thursday April 25, 2013 @06:39AM (#5606497)
Once you're done coding, the code will be completed.

That's all there is to it.

Re:Version 1.8 of GNU ed released by aeonflux on Thursday April 25, 2013 @03:08AM (#5606048)
But does it have multiple cursors?
Re:Version 1.8 of GNU ed released by mhd on Thursday April 25, 2013 @07:04AM (#5606553)
You need 'ex' for that, if you can stand the bloat.
Re:Version 1.8 of GNU ed released by RBerenguel on Thursday April 25, 2013 @06:47AM (#5606515)
One for each term tab. Or tmux/screen session. How cool is that!?