Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Are you saying something in C++ is preventing you from issuing that 'rm -rf' command?


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).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: