• ffhein@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    8 months ago

    I wonder how much would break, and how much time it would take to update everything, if all shells decided to implement a breaking change to prevent these kind of scenarios. E.g. make “set -u” default or some other solution

  • HarriPotero@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    8 months ago

    SIDPlay did something similar on the Mac.

    It has the neat built-in feature of rsyncing the high voltage SID collection to your computer.

    However, if you deleted your local copy of it and tried to re-sync it’d update (with deletes) against / instead. Bye bye files.

  • MyNameIsRichard@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    8 months ago

    A theme is software and software has bugs. While this one had a pretty dramatic effect, you take basically the same risk with every program you run. This, along with hardware and user errors are why backups are so important; they change a disaster to an inconvenience.

    / Preach mode off

    • ShortN0te@lemmy.ml
      link
      fedilink
      arrow-up
      0
      ·
      8 months ago

      A windows device just wiped the hardware settings of a periphery device, because it got an update and the new lighting settings wanted to control the LEDs in that device. All gone

  • db2@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    8 months ago

    Trust but verify. It was a text file, it doesn’t get much easier to do the second step of that.

    • aksdb@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      8 months ago

      … in which case you would have seen that they delete a path referenced by an env var being set earlier.

      How likely do you think it would have been to notice, that this env var will turn up empty in your specific case?

  • fl42v@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    8 months ago

    The Gray Layout installation script ran the rm -rf command, which normally removes all files from the device

    Translation difficulties, or does the author really think that’s what it’s normally used for?