29 ms·
Such a bug was in an Nvidia driver install script a few years ago: rm -rf /usr /lib/modules/something/something
by majewsky 10y ago
Such a bug was in an Nvidia driver install script a few years ago:
rm -rf /usr /lib/modules/something/something
- yomly 10y agoThat's mortifying!
- czinck 10y agoBumblebee specifically, https://github.com/MrMEEE/bumblebee-Old-and-abbandoned/commit/a047be85247755cdbe0acce6f1dafc8beb84f2ac https://github.com/MrMEEE/bumblebee-Old-and-abbandoned/commi... is the fix. Pretty sure Steam had the same issue early in their linux release, probably lots of other programs too.
- cookiecaper 10y agoYes, I specifically remember a lot of hub bub about Steam deleting entire home directories if a path was input incorrectly. Glad that never bit me.
- Slackwise 10y agoThis is why I never use bash for scripting, and opt for Ruby instead. You can use the `Pathname` class to treat paths as objects, which you can concatenate only valid paths with. Aside from obviously all the other sanity-saving features.
- cookiecaper 10y agoSame. Ruby isn't my preference, but I avoid bash scripting whenever possible. I see very little need to use it when practically every machine requires Python, Ruby, and other high-level dynamic languages as pre-requisite for some basic software that's included by default. I respect bash, but it's from a bygone time. Why deal with the esoteric one-character test operators, the nitpicky spacing issues, etc? Use modern, readable, testable code. So much nicer and easier to read and work with that way. I'd love to see someone deploy a Python or Ruby-based shell. I'm sure these are available, but they're not widely used.
- dragonwriter 10y agoBash may be worse than Ruby or Python for scripting, but it's far better as an interactive shell. And I'm quite happy not having shell use hold back evolution of Ruby or Python, and not having drama like Ruby 1.8 -> 1.9 or Python 2.x -> 3.x affecting shell use.
- peterkelly 10y agoAnd also iTunes, back in the early days of OS X: https://www.wired.com/2001/11/glitch-in-itunes-deletes-drives/ https://www.wired.com/2001/11/glitch-in-itunes-deletes-drive...