News for hackers. Stuff that matters.
Re:Diaspora-common: does 'rm -rf /' on purge by Ericson2314 on Thursday March 23, 2017 @10:46AM (#13940157)
A language with more rigor about path concatenation (and undefined variables) would. (Yes set -e, but it's little used for better or worse.)
Re:Diaspora-common: does 'rm -rf /' on purge by comex on Thursday March 23, 2017 @05:04PM (#13944260)
Indeed. When you write "$foo/bin", you're looking for a specific operation: get the path "bin" relative to the directory $foo. Ideally this should be expressed in such a way that even if $foo somehow acquires a null or "default" value (which hopefully requires more than just naming an undefined variable, as in bash), you get an error trying to lookup relative to null, rather than the slash silently turning into the root directory.