'rm -rf "$STEAMROOT/"*'.

For everything that's not in any way related to PureBasic. General chat etc...
User avatar
luis
Addict
Addict
Posts: 3895
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

'rm -rf "$STEAMROOT/"*'.

Post by luis »

The mind of an anonymous Valve's programmer wrote: Hmmm... a rm -rf with an environment variable and a literal "/*" combined together as its parameter ...

Maybe I should check if the $STEAMROOT is not empty ...

Maybe I should check if the path exists ...

Maybe I could also rewrite it an leave out the "/*", after all I've specified -rf already with a path ...

Maybe ... hey ! Look at the time, it's noon ! Lunch time ! I'll think about all this later.
http://www.bit-tech.net/news/gaming/201 ... inux-bug/1
"Have you tried turning it off and on again ?"
User avatar
Shield
Addict
Addict
Posts: 1021
Joined: Fri Jan 21, 2011 8:25 am
Location: 'stralia!
Contact:

Re: 'rm -rf "$STEAMROOT/"*'.

Post by Shield »

Geez... :? I bet someone got fired...
Image
Blog: Why Does It Suck? (http://whydoesitsuck.com/)
"You can disagree with me as much as you want, but during this talk, by definition, anybody who disagrees is stupid and ugly."
- Linus Torvalds
User avatar
idle
Always Here
Always Here
Posts: 6026
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: 'rm -rf "$STEAMROOT/"*'.

Post by idle »

Shield wrote:Geez... :? I bet someone got fired...
Well in their defense, they at least commented it with "SCARY!" :lol:
https://news.ycombinator.com/item?id=8896319
Windows 11, Manjaro, Raspberry Pi OS
Image
User avatar
luis
Addict
Addict
Posts: 3895
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: 'rm -rf "$STEAMROOT/"*'.

Post by luis »

http://store.steampowered.com/news/15512
Linux
Fixed a rare bug where Steam could delete user files when failing to start
A rare, unpredictable, inscrutable bug you mean.

Just another day at the office.
"Have you tried turning it off and on again ?"
Post Reply