DEV Community

Discussion on: Here's Why You Should Quote Your Variables in Bash

Collapse
 
benjaminblack profile image
Benjamin Black

Too many people have ingrained rm -rf into muscle memory. It even has a mnemonic, "rimraf." Drop the -f and add -i, for your own safety. Then, only use -f explicitly, and never by default.