Am Sonntag, 3. Januar 2016, 15:53:56 CET schrieben Sie: > [1] Fat-fingering a deletion: My own brown-bag "I became an admin that > day" case was running a script, unfortunately as root, that I was > debugging, where I did an rm -rf $somevar/*, with $somevar assigned > earlier, only either the somevar in the assignment or the somevar in the > rm line was typoed, so the var ended up empty and the command ended up as > rm -rf /*. ... > > I was *SO* glad I had a backup, not just a raid1, that day!
Epic. Thats the one case GNU rm doesn´t cover yet. It refuses to rm -rf . or rm -rf .. and rm -rf / (unless you give special argument, but there is not much it can do about rm -r /*, as the shell expands this before handing it to the command. Thanks, -- Martin -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html