• tal@lemmy.today
      link
      fedilink
      English
      arrow-up
      0
      ·
      5 months ago

      Ed is kinda-sorta great-granddaddy vim.

      https://en.wikipedia.org/wiki/Ed_(software)

      ed (pronounced as distinct letters, /ˌiːˈdiː/)[1] is a line editor for Unix and Unix-like operating systems. It was one of the first parts of the Unix operating system that was developed, in August 1969.

      Dennis M. Ritchie produced what Doug McIlroy later described as the “definitive” ed,[5] and aspects of ed went on to influence ex, which in turn spawned vi.

      https://en.wikipedia.org/wiki/Vi_(text_editor)

      Vim (“Vi IMproved”) has many additional features compared to vi, including (scriptable) syntax highlighting, mouse support, graphical versions, visual mode, many new editing commands and a large amount of extension in the area of ex commands.

      I’ve never used qed, but it sounds like that might be considered even one step back:

      https://en.wikipedia.org/wiki/Ed_(software)

      Many features of ed came from the qed text editor developed at Thompson’s alma mater University of California, Berkeley.

      https://en.wikipedia.org/wiki/QED_(text_editor)

      Initial release: 1967

      I guess TECO — which I also have not used — would kinda-sorta be the emacs analog:

      https://en.wikipedia.org/wiki/TECO_(text_editor)

      TECO (/ˈtiːkoʊ/[1]), short for Text Editor & Corrector, [2] [3][4] is both a character-oriented text editor and a programming language,[5][6] that was developed in 1962 for use on Digital Equipment Corporation computers, and has since become available on PCs and Unix. Dan Murphy developed TECO while a student at the Massachusetts Institute of Technology (MIT).

      It was subsequently modified by many other people[7] and is a direct ancestor of Emacs, which was originally implemented in TECO macros.

      EDIT: Actually…hmm. Now that I think of it, I might have briefly used TECO on a DEC VMS cluster. IIRC, I mostly used EVE, though.

      • anton@lemmy.blahaj.zone
        link
        fedilink
        arrow-up
        0
        ·
        5 months ago

        Remember to put

        #!/bin/rm
        

        at the top of every file, to teach people not to execute files they shouldn’t.

            • utopiah@lemmy.world
              link
              fedilink
              arrow-up
              0
              ·
              5 months ago

              Not really cool to post commands like that without consideration for privileges for newcomers, make sure to use sudo first. /s

            • jim3692@discuss.online
              link
              fedilink
              arrow-up
              0
              ·
              5 months ago

              NixOS has rm. But it’s not under /bin. There is no /bin in NixOS. The user’s programs are inside /run/current-system/sw/bin, and those are symlinks from files hidden in /nix/store.

              Running rm -rf / --no-preserve-root under NixOS, will not nuke the entire system, since /nix/store is mounted as read-only, and only remounted as rw when new applications are downloaded, or older unused ones are wiped.