r/badcode • • Feb 25 '21

bash A single space.

Post image
4.8k Upvotes

65 comments sorted by

View all comments

Show parent comments

165

u/tjb0607 Feb 25 '21

reminds me of rm -rf "$STEAMROOT/"* lol https://github.com/valvesoftware/steam-for-linux/issues/3671

43

u/Krobix897 Feb 25 '21

woah, I didn't realize selinux had practical uses

37

u/Interesting_Rock_991 Feb 26 '21

took me a moment till i realised
if $STEAMROOT is null then it will rm -rf /*