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

finally something worse then curl | sh

lemmy.blahaj.zone

message-square
126
link
fedilink
1

finally something worse then curl | sh

lemmy.blahaj.zone

not_IO@lemmy.blahaj.zone to Programmer Humor@programming.devEnglish · 1 month ago
message-square
126
link
fedilink

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

  • Fargeol@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    1 month ago

    Relevant XKCD:
    Universal Install Script

    • Kairos@lemmy.today
      link
      fedilink
      arrow-up
      0
      ·
      1 month 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
        0
        ·
        1 month ago

        It’s the Key and Peele of geek comics

      • MelodiousFunk@slrpnk.net
        link
        fedilink
        arrow-up
        0
        ·
        1 month ago

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

        • perishthethought@piefed.social
          link
          fedilink
          English
          arrow-up
          0
          ·
          1 month ago

          So meta

          • jjj@lemmy.blahaj.zone
            link
            fedilink
            arrow-up
            0
            ·
            1 month ago

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

            • DeltaWingDragon@sh.itjust.works
              link
              fedilink
              arrow-up
              0
              ·
              1 month ago

              I’m
              So
              Meta
              Even
              This
              Acronym

        • wpb@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          1 month ago

          Is this a reference to something?

          • 18107@aussie.zone
            link
            fedilink
            English
            arrow-up
            0
            ·
            1 month ago

            https://xkcd.com/1053/

          • Redkey@programming.dev
            link
            fedilink
            arrow-up
            0
            ·
            1 month ago

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

      • FishFace@piefed.social
        link
        fedilink
        English
        arrow-up
        0
        ·
        1 month 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
          0
          ·
          1 month ago

          I’m so old I remember anticipating the 404

    • psud@aussie.zone
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 month 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?

      • katze@lemmy.4d2.org
        link
        fedilink
        arrow-up
        0
        ·
        1 month ago

        Yes, it should have been a ; instead.

      • Tja@programming.dev
        link
        fedilink
        arrow-up
        0
        ·
        1 month ago

        That would be &&.

        A single & will run them in parallel.

        • psud@aussie.zone
          link
          fedilink
          English
          arrow-up
          0
          ·
          1 month ago

          Thanks

      • Kimplul@programming.dev
        link
        fedilink
        English
        arrow-up
        0
        ·
        1 month 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
          0
          ·
          1 month 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 &&

    • MonkeMischief@lemmy.today
      link
      fedilink
      arrow-up
      0
      ·
      1 month ago

      (clears throat in Zypper install)

      :p

    • Eager Eagle@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 month ago

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

      • SleeplessCityLights@programming.dev
        link
        fedilink
        arrow-up
        0
        ·
        1 month ago

        It could be a crate…

        • boonhet@sopuli.xyz
          link
          fedilink
          arrow-up
          0
          ·
          1 month 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
            0
            ·
            1 month 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
      0
      ·
      1 month ago

      I can stop laughing at steamcmd.

      • NeatNit@discuss.tchncs.de
        link
        fedilink
        arrow-up
        0
        ·
        1 month ago

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

    • zr0@lemmy.dbzer0.comBanned
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 month ago

      apt-get install
      sudo apt-get install

      sigh

      • ryannathans@aussie.zone
        link
        fedilink
        arrow-up
        0
        ·
        1 month ago

        I know right could just be apt install

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.

  • 26 users / day
  • 203 users / week
  • 959 users / month
  • 3.76K users / 6 months
  • 0 local subscribers
  • 33.2K subscribers
  • 920 Posts
  • 13.8K Comments
  • Modlog
  • mods:
  • adr1an@programming.dev
  • Feyter@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.18
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org