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?
[ Parent
| on HN ]
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.
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).