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

finally something worse then curl | sh

lemmy.blahaj.zone

message-square
124
link
fedilink
762

finally something worse then curl | sh

lemmy.blahaj.zone

not_IO@lemmy.blahaj.zone to Programmer Humor@programming.devEnglish · 3 days ago
message-square
124
link
fedilink

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

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

    Relevant XKCD:
    Universal Install Script

    • Kairos@lemmy.today
      link
      fedilink
      arrow-up
      105
      ·
      3 days ago

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

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

        It’s the Key and Peele of geek comics

      • FishFace@piefed.social
        link
        fedilink
        English
        arrow-up
        24
        ·
        3 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
          ·
          3 days ago

          I’m so old I remember anticipating the 404

    • zr0@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      36
      arrow-down
      1
      ·
      3 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
      ·
      3 days ago

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

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

        It could be a crate…

        • boonhet@sopuli.xyz
          link
          fedilink
          arrow-up
          16
          ·
          3 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
            ·
            3 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
      28
      ·
      3 days ago

      I can stop laughing at steamcmd.

      • NeatNit@discuss.tchncs.de
        link
        fedilink
        arrow-up
        21
        ·
        3 days ago

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

    • psud@aussie.zone
      link
      fedilink
      English
      arrow-up
      4
      ·
      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
      ·
      3 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.

  • 1.39K users / day
  • 4.74K users / week
  • 8.09K users / month
  • 17K users / 6 months
  • 10 local subscribers
  • 32.7K subscribers
  • 992 Posts
  • 20.3K Comments
  • Modlog
  • mods:
  • adr1an@programming.dev
  • Feyter@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.15
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org