Live data from Hacker News

Ed is the standard text editor (2014)

wiki.c2.com

111–120 of 125 posts

Re: Ed is the standard text editor (2014)

#111
post #18

Earlier quoted context omitted.

"oh no i reinstalled the os on my vps and now ssh has it on good authority (said authority is line 68) that someone is doing something nasty" ed .ssh/config 68d wq done, didnt fill my terminal with vim or emacs, didnt tab over to my gui editor then back again also it's a nicely "semantic"/compact/comprehensible way of expressing patches in things like portfiles or nix expressions: postPatch = '' ed Makefile etc etc s…

> ed .ssh/config I think this is my ed use-case as well. I've noticed I need to "apt-get install ed" sometimes. The standard editor is not always standard, it seems.

> The standard editor is not always standard, it seems.

Linux distros don’t follow a standard anymore, as as I can tell. And Linux was never entirely POSIX compliant.

Re: Ed is the standard text editor (2014)

#112

Earlier quoted context omitted.

whoa! What did I just see!? Could someone please explain to me how that telephone head set placed next to printer thing contraption works?

The printer thing is a teletype. Think of it as a terminal onscreen, but...the text actually gets printed to typewriter paper line by line. The phone thing is almost certainly an acoustic coupler for a 300-baud modem, hooked to the teletype. You'd dial the modem pool for the server you were trying to connect to, and when you heard the happy modem noises come through the handset, you'd slam it down on the two rubber c…

More like 150 baud. I'm not sure if there was protocol negotiations or just a lot of wait back and forth.

I actually used such a thing to dial a BBS when my Atari 800xl's modem got hit by lightning. Obsolete then, and slow but I got my fix. Fun times...

Re: Ed is the standard text editor (2014)

#113
I'm still using it almost daily, since 1980, although I suppose today it's an emulation inside vim not the real thing.

Not used for my code IDE or anything, but little config files etc.

We had vi on our '11 in 1980 but I could never get along with it and still can't.

Source if anyone's interested. 1700 loc : https://github.com/v7unix/v7unix/blob/master/v7/usr/src/cmd/...

Re: Ed is the standard text editor (2014)

#114

I hate to be that guy, but 'ed' is very unix specific. In the mid-1970's (and apparently as early as the 1960's according to Wikipedia), those of us on TOPS/10, TOPS/20 (and perhaps other DEC systems) were using TECO (which of course became EMACS).

EDLIN in MS-DOS was very similar to ed. (Here's a short third-party manual that someone wrote. http://www.sqrt-pi.org/boots/Done-That/Edlin-manual/p11.html )

Early MS was heavily dec-10 based, wasn't it? so it's possible its lineage comes through TECO, via CP/M ED.

Re: Ed is the standard text editor (2014)

#116
post #41

For some reason it took me years to understand the need for a line editor. It didn't make any sense in my head. Then one day I saw the famous picture of Bill and Allen as kids in front of a teletype [1] and it finally clicked. The way it worked was like this: As you keyed in your program, letter by letter, it was printed out on the paper immediately like a typewriter. If you ran the program and there was a problem, y…

That's also why TTY is the name for abstract devices. Terminals are simulated teletypes.

OMG... I just got sucked into a Wikipedia rabbit hole by looking up TTY. Hours!!!

https://en.m.wikipedia.org/wiki/Teleprinter

Enjoy.

Re: Ed is the standard text editor (2014)

#117
post #86

Earlier quoted context omitted.

Why not use sed?

Because it’s not standard.

No, it is. And as other people have pointed out, it ships on more distros.

https://pubs.opengroup.org/onlinepubs/009604499/utilities/se...

It's "ed" which is de facto non-standard.

Re: Ed is the standard text editor (2014)

#118
My absolute favorite remedy for social media addiction.

Read entries from c2 wiki.

Don't know what to do with yourself for a few minutes DO NOT open Reddit, Facebook, Instagram, TikTok, Twitter ... Whatever.

Read the original, classic group discussion on tech. With Ward Cunningham, Kent Beck, Rob Pike, and many many other luminaries contributing to this endless discussion, you cannot fail to be educated on some level.

So before you read another random article here, on medium or some other place where a "10x" dev just learned something about X ... Just don't, go read c2 wiki.

Re: Ed is the standard text editor (2014)

#119

Earlier quoted context omitted.

Let me simplify and fix this for you. 1) Mute phone 2) Turn off desktop notifications 4) enjoy working in peace 5) check notifications when you like 7) Live a happier and less stressful life.

6) forget to check notifications in a reasonable amount of time and miss important alerts, possibly negatively impacting your career growth.

7) learn to not care so much :)

Edit:// to be fair I have downtime notifications on priority. Everything else is not time critical

Re: Ed is the standard text editor (2014)

#120

Earlier quoted context omitted.

In most cases I find `sed -i` to be more convenient than using ed in scripts, but the paradigm is a little different.

Except for when it breaks on FreeBSD or macOS. The most portable utility nowadays for desktop systems is ex, actually (because some Linux distros don’t include ed).

Let me guess:Redhat?
Post reply on HN