Brdsnest Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
not_IO@lemmy.blahaj.zone to Programmer Humor@programming.devEnglish · 2 days ago

finally something worse then curl | sh

lemmy.blahaj.zone

message-square
132
fedilink
768

finally something worse then curl | sh

lemmy.blahaj.zone

not_IO@lemmy.blahaj.zone to Programmer Humor@programming.devEnglish · 2 days ago
message-square
132
fedilink

https://labyrinth.zone/objects/96478395-64d9-452c-a906-9e6159cd10a3

  • Fargeol@lemmy.world
    link
    fedilink
    arrow-up
    269
    ·
    2 days ago

    Relevant XKCD:
    Universal Install Script

    • Kairos@lemmy.today
      link
      fedilink
      arrow-up
      106
      ·
      2 days ago

      How am I still learning about XKCDs I’ve never seen especially ones in the 1000 range.

      • MelodiousFunk@slrpnk.net
        link
        fedilink
        arrow-up
        72
        ·
        2 days ago

        Congrats on being one of today’s lucky 10,000!

        • perishthethought@piefed.social
          link
          fedilink
          English
          arrow-up
          37
          ·
          2 days ago

          So meta

          • jjj@lemmy.blahaj.zone
            link
            fedilink
            arrow-up
            18
            ·
            2 days ago

            Too meta. https://xkcd.com/1447/

            • DeltaWingDragon@sh.itjust.works
              link
              fedilink
              arrow-up
              1
              ·
              39 minutes ago

              I’m
              So
              Meta
              Even
              This
              Acronym

        • wpb@lemmy.world
          link
          fedilink
          arrow-up
          10
          ·
          2 days ago

          Is this a reference to something?

          • Redkey@programming.dev
            link
            fedilink
            arrow-up
            22
            ·
            2 days ago

            Yes. https://xkcd.com/1053/

          • 18107@aussie.zone
            link
            fedilink
            English
            arrow-up
            9
            arrow-down
            1
            ·
            2 days ago

            https://xkcd.com/1053/

      • db2@lemmy.world
        link
        fedilink
        arrow-up
        29
        ·
        2 days ago

        It’s the Key and Peele of geek comics

      • FishFace@piefed.social
        link
        fedilink
        English
        arrow-up
        25
        ·
        2 days ago

        When you first learnt about xkcd, did you not S L O O O R P the entire back catalogue?

        I guess when I did that there were A LOT fewer. Cuz I’m old.

        • criticon@lemmy.ca
          link
          fedilink
          arrow-up
          15
          ·
          2 days ago

          I’m so old I remember anticipating the 404

    • zr0@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      35
      arrow-down
      1
      ·
      edit-2
      2 days ago

      apt-get install
      sudo apt-get install

      sigh

      • ryannathans@aussie.zone
        link
        fedilink
        arrow-up
        8
        ·
        2 days ago

        I know right could just be apt install

    • Eager Eagle@lemmy.world
      link
      fedilink
      English
      arrow-up
      39
      ·
      2 days ago

      if $1 is not installed after that, wipe your hard drive and start over

      • SleeplessCityLights@programming.dev
        link
        fedilink
        arrow-up
        22
        ·
        2 days ago

        It could be a crate…

        • boonhet@sopuli.xyz
          link
          fedilink
          arrow-up
          16
          ·
          2 days ago

          Script needs to be updated, Rust wasn’t particularly popular back then (if it existed. I don’t know how old this one is, but it’s pretty old)

          • NeatNit@discuss.tchncs.de
            link
            fedilink
            arrow-up
            11
            ·
            2 days ago

            March 11, 2016 according to https://www.explainxkcd.com/wiki/index.php/1654:_Universal_Install_Script

            According to the Rust Wikipedia article, it was juuuust starting to be used in real things around that period. Definitely before it was popular.

    • SleeplessCityLights@programming.dev
      link
      fedilink
      arrow-up
      29
      ·
      2 days ago

      I can stop laughing at steamcmd.

      • NeatNit@discuss.tchncs.de
        link
        fedilink
        arrow-up
        22
        ·
        2 days ago

        Good. If you couldn’t that would be a real problem.

    • psud@aussie.zone
      link
      fedilink
      English
      arrow-up
      3
      ·
      2 days ago

      With all those connected with & won’t it skip the rest after the first failure? Or does ‘no such program’ or ‘you don’t have permission’ not produce an error?

      • Kimplul@programming.dev
        link
        fedilink
        English
        arrow-up
        8
        ·
        2 days ago

        In bash, & just starts the program in the background, so all of the commands are run in parallel. You’re probably thinking of &&, which runs the command on its left, checks its return code, and then decides whether run the command on the right.

        Although, in this case there are no ‘commands on the right’ since all the commands are on separate lines. You’d need to backslash the commands together, something like

        pip install "$1" && \
        easy_install "$1" && \
        ...
        
        • psud@aussie.zone
          link
          fedilink
          English
          arrow-up
          4
          ·
          2 days ago

          I saw it as wrapped, so couldn’t dismiss the option that all were on a single logical line. But you’re right, I was thinking of &&

      • Tja@programming.dev
        link
        fedilink
        arrow-up
        6
        ·
        2 days ago

        That would be &&.

        A single & will run them in parallel.

        • psud@aussie.zone
          link
          fedilink
          English
          arrow-up
          2
          ·
          2 days ago

          Thanks

      • katze@lemmy.4d2.org
        link
        fedilink
        arrow-up
        1
        arrow-down
        1
        ·
        2 days ago

        Yes, it should have been a ; instead.

    • MonkeMischief@lemmy.today
      link
      fedilink
      arrow-up
      4
      ·
      2 days ago

      (clears throat in Zypper install)

      :p

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 3.31K users / day
  • 5.01K users / week
  • 8.26K users / month
  • 18K users / 6 months
  • 1 local subscriber
  • 32.6K subscribers
  • 2.18K Posts
  • 70.6K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org