News for hackers. Stuff that matters.
Re:Did Pixar accidentally delete Toy Story 2 during producti... by aptwebapps on Tuesday January 17, 2017 @09:43AM (#13417903)
I have totally never done that. If I had done that, I might have been saved by a lack of permissions. Like if I was on a mounted external drive, so not in my home directory and it didn't get too far.

Edit: What would have been much more worse, if I had done it, would have been

    rm -rf ~ /foo
instead of

    rm -rf ~/foo
Re:Did Pixar accidentally delete Toy Story 2 during producti... by majewsky on Tuesday January 17, 2017 @09:50AM (#13417961)
Such a bug was in an Nvidia driver install script a few years ago:

  rm -rf /usr /lib/modules/something/something
Re:Did Pixar accidentally delete Toy Story 2 during producti... by czinck on Tuesday January 17, 2017 @10:29AM (#13418294)
Bumblebee specifically, 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.
Re:Did Pixar accidentally delete Toy Story 2 during producti... by cookiecaper on Tuesday January 17, 2017 @05:46PM (#13422216)
Yes, 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.
Re:Did Pixar accidentally delete Toy Story 2 during producti... by peterkelly on Tuesday January 17, 2017 @11:11AM (#13418681)
And also iTunes, back in the early days of OS X:

https://www.wired.com/2001/11/glitch-in-itunes-deletes-drive...

Re:Did Pixar accidentally delete Toy Story 2 during producti... by Slackwise on Tuesday January 17, 2017 @10:53AM (#13418500)
This 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.

Re:Did Pixar accidentally delete Toy Story 2 during producti... by cookiecaper on Tuesday January 17, 2017 @05:52PM (#13422264)
Same. 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.

Re:Did Pixar accidentally delete Toy Story 2 during producti... by dragonwriter on Tuesday January 17, 2017 @06:01PM (#13422328)
Bash 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.

Re:Did Pixar accidentally delete Toy Story 2 during producti... by yomly on Tuesday January 17, 2017 @10:28AM (#13418286)
That's mortifying!