supernova.place
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Don't forget to stay hydrated.🍉🍉🍉🍉🍉@sh.itjust.works to Programmer Humor@programming.devEnglish · 1 個月前

rm -rf /usr due to typo

sh.itjust.works

message-square
49
link
fedilink
476

rm -rf /usr due to typo

sh.itjust.works

Don't forget to stay hydrated.🍉🍉🍉🍉🍉@sh.itjust.works to Programmer Humor@programming.devEnglish · 1 個月前
message-square
49
link
fedilink

https://github.com/MrMEEE/bumblebee-Old-and-abbandoned/issues/123

  • SavvyBeardedFish@reddthat.com
    link
    fedilink
    arrow-up
    156
    arrow-down
    1
    ·
    1 個月前

    https://github.com/ValveSoftware/steam-for-linux/issues/3671

    Another classic

    • OwOarchist@pawb.social
      link
      fedilink
      English
      arrow-up
      143
      ·
      1 個月前

      rm -rf “$STEAMROOT/”* could be evaluated as rm -rf “/”* if $STEAMROOT is empty

      Ah, good times.

      • Victor@lemmy.world
        link
        fedilink
        arrow-up
        33
        ·
        1 個月前

        Probably a good idea to enable the nounset shell option when shipping commercial-grade install scripts. 😅

        • fruitcantfly@programming.dev
          link
          fedilink
          arrow-up
          7
          ·
          edit-2
          1 個月前

          That really ought to have been the default behavior. Opting out only takes one or two extra characters. Well, three or four if you don’t habitually bracket your variable names, which you should probably be doing anyways

        • OwOarchist@pawb.social
          link
          fedilink
          English
          arrow-up
          4
          ·
          1 個月前

          Or just include the trailing slash in $STEAMROOT, so that if the variable is empty, it will evaluate to rm -rf "" and do nothing.

          • Victor@lemmy.world
            link
            fedilink
            arrow-up
            8
            arrow-down
            1
            ·
            1 個月前

            That seems like a more error-prone solution than the shell option. That would make it evaluate to rm -rf * which would probably delete your home directory, I’m guessing. And also put the burden of knowing the slash needs to be included on something completely disconnected from the expression. Nah, don’t do it like that.

      • Fmstrat@lemmy.world
        link
        fedilink
        arrow-up
        20
        ·
        1 個月前

        I love how someone committed # scary! above it rather than fixing it.

      • sp3ctr4l@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        20
        ·
        1 個月前

        Wow.

        That’s a nuclear grade ‘oopsie’ right there hahaha!

    • SayCyberOnceMore@feddit.uk
      link
      fedilink
      English
      arrow-up
      27
      ·
      1 個月前

      Jeez. Didn’t hear about that one, back in the day… wow.

      • FauxLiving@lemmy.world
        link
        fedilink
        arrow-up
        9
        ·
        1 個月前

        Linux Gaming has had some interesting moments

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.

  • 499 users / day
  • 3.12K users / week
  • 7.59K users / month
  • 17.1K users / 6 months
  • 1 local subscriber
  • 32.9K subscribers
  • 1.87K Posts
  • 51K Comments
  • Modlog
  • mods:
  • adr1an@programming.dev
  • Feyter@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.19
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org