3 ms·
I've seen a lot of scripts written in my career and most of them do things that scare me. It boils down to “explicit is better than implicit”, and there are to
by makecheck 11y ago
I've seen a lot of scripts written in my career and most of them do things that scare me. It boils down to “explicit is better than implicit”, and there are too many lazy or careless developers out there.
Another good reason to demand open-source, to have a fighting chance that someone has proofread what is about to ask for admin privileges.
More than once I've seen people using "rm -Rf" habitually whether the target is a file or a directory, because it will basically always work (remembering when to use "rmdir" is apparently hard). Well, great...now the side effects of using "rm -Rf ${dir}/${file}" where there's an undefined variable are just a bit ridiculous when all you wanted to do was delete a temporary file.