S/Sed/Ed

(aartaka.me)

30 points | by thunderbong 16 hours ago

4 comments

  • xg15 2 hours ago
    > No. I stay with ed, because it is

    Forgot the most important point there.

    ...the standard text editor

  • dextercd 11 hours ago
    One time I used Power BI/Power query language to generate an Ed script that contained all versions of all XML documents in a database and turn them into a Git repo.

    I still like writing scripts that generate Git repos but I don't use Ed much.

    • snthpy 6 hours ago
      Do you have anything public on this or similar to this?

      I'm also a fan of Power Query and M-lang and think it's underappreciated by the dev community.

      Why did you use PQ in that instance?

  • sedatk 12 hours ago
    vi was originally the visual-by-default run mode of ed. And EDLIN on MS-DOS (and maybe CP/M too? don't remember) was based on ed too. That's why EDLIN and vi have similar command sets.
    • susam 12 hours ago
      If I remember correctly, vi was the visual mode of ex. I am trying to find some references for this. Here's one I could find from <https://pubs.opengroup.org/onlinepubs/9699919799/utilities/v...>:

      > While ex and vi have historically been implemented as a single utility, this is not required by POSIX.1-2017.

      Better references would be very welcome. By the way, we can see this even today. For example, first type the following command in your terminal:

        ex
      
      Then at the ex prompt (the colon prompt), type this:

        vi
      
      This should bring up full blown Vim. The reverse is possible too. For example, in Vim, type:

        Q
      
      This takes us to Ex mode. Then in Ex mode type:

        vi
      
      This brings back Vim again.
  • snvzz 12 hours ago
    TIL about Rosetta code[0].

    And I can't help but wonder what the license of the code in the site is.

    If it isn't BSD0 or some similar attempt at preemptive public domain, what is even the point of such a thing.

    0. https://rosettacode.org/wiki/Rosetta_Code

    • jph 12 hours ago
      Rosetta Code is a great resource and uses the GNU Free Documentation License 1.2.
      • snvzz 7 hours ago
        I see this much, but that's not a code license; it is a documentation one.