• @Beanie@programming.dev
            link
            fedilink
            01 month ago

            my best guess: system("bash -c 'echo \\\"¯\\\\_(ツ)_/¯\\\"'");

            which will get parsed as: bash -c 'echo \"¯\\_(ツ)_/¯\"'

            which will run: echo "¯\_(ツ)_/¯"

            and since echo just prints whatever was given to it, it’ll print "¯\_(ツ)_/¯" with the quotes

          • @smeg@feddit.uk
            link
            fedilink
            English
            01 month ago

            That was actually the first line of C I’ve ever written so there’s no way I’m guessing the right number of escapes, but I guess I’d cheat by finding the value of each char and printing those one at a time.

    • Björn TantauOP
      link
      fedilink
      01 month ago

      No. It was for a Star Wars roleplay but not a video game. It started life in the newsgroup de.rec.sf.starwars and I played the role of Emperor.

        • Björn TantauOP
          link
          fedilink
          01 month ago

          No set rules, just goofing around. When we got too annoying for the rest of the newsgroup we moved to a mailing list and met up in real life a bunch of times.

          First time my father flew me there in a small sports plane. They had gotten the permission to greet me on the air field with a limousine blasting the Force Commander remix of the Imperial March and a black carpet. All the Jedi, Sith and in-betweens were waving Emperor-flags and greeted me as was befitting a man of my status.

          Did I mention that I was 14 at the time and everyone else about 30?

          Good times.

  • DreamButt
    link
    fedilink
    English
    01 month ago

    For shame. They forgot to make a script to make a tmp script using mktmp, so they can store their tmp script in the tmp script and have proper cleanup

    • kamen
      link
      fedilink
      01 month ago

      As if someone’s telling a joke and saying “This is where you should laugh”

        • kamen
          link
          fedilink
          English
          01 month ago

          Laugh tracks have a purpose though. I understand they’re not to everyone’s liking - and that’s fine, but they work for some comedy shows - and usually they’re from the live audience that sees things performed in front of them.

  • @Artyom@lemm.ee
    link
    fedilink
    01 month ago

    Always follow best practices, make sure you cleanup by deleting the hello world bash file!

  • @sga@lemmings.world
    link
    fedilink
    English
    01 month ago

    reinventing shell scripting. Though I am guilty of this, I do something like this (more complex) but essentially a shell script in rust just because for some application, reading files is slower that way

  • @pedz@lemmy.ca
    link
    fedilink
    01 month ago

    That’s me with TCL.

    I’ve had an eggdrop for years (obviously) and I’m very bad with TCL, so any new script that I want to add is a bash script executed by the TCL script.

    • aquafunkalisticbootywhap
      link
      fedilink
      01 month ago

      TIL people still run eggdrop bots. I don’t think Ive touched one since maybe 2003. was probably the last time I messed with tcl

      • @pedz@lemmy.ca
        link
        fedilink
        01 month ago

        I still have an IRC server but the eggdrop’s usefulness has pretty much been reduced to fetching YouTube titles and the URL of images on tenor. Its main use was to fetch titles for all URLs pasted on channels where it is, but because me and most of the users are now using TheLounge as a client, there is no need for that anymore, except for a few exceptions. At one point it was also displaying all the things my friends upvoted on reddit, but since reddit closed its API and I came here…

        IRC with TheLounge is still very useful though.