News for hackers. Stuff that matters.
Re:Linux distros without systemd by trickstra on Monday May 20, 2019 @10:53PM (#19967252)
Are you saying something in C++ is preventing you from issuing that 'rm -rf' command?
Re:Linux distros without systemd by kbumsik on Tuesday May 21, 2019 @05:59AM (#19968799)
He is saying that Bash can also cause catastrophic behaviors by an as simple mistake as unsetting $DIR. C++ at least reject to compile when a variable is not set.
Re:Linux distros without systemd by trickstra on Tuesday May 21, 2019 @06:09AM (#19968829)
Any language can cause a catastrophic scenario like that. It's not a feature of the language. Not even the goal of the language to protect from something like rm -rf. The variable could have been set to empty string and C++ would just comply with what the programmer wrote (not what they meant, but that's a completely different thing).