A problem with most commands is that they usually don't need extremely-unfortunate typos or russian-roulette-enabled shells to turn into something wrong: they are usually wrong in passing , while you're typing them. I always wondered if something could be done against the effects of an accidental premature return. Some of us have cats... `sudo rm -rf /tmp/workdir` starts with `sudo rm -rf /` `git reset libs` starts w…
My favorite is: rm -rf ${DIR_NAME}/* Then you remember that DIR_NAME is undefined...
[0] https://github.com/valvesoftware/steam-for-linux/issues/3671