Hacker News new | ask | show | jobs
by Zikes 4172 days ago
What if you somehow wound up with a single line of / in the MANIFEST, though?
2 comments

"rm -df /" does nothing. "rm -df" does not remove non-empty directories.
That's awesome, I didn't catch the s/r/d/.
That's because I ninja'd the -d in after ;) also just ninja'd in a -- to prevent stray options.

Note also that putting a "*" in the MANIFEST doesn't do anything either, as neither xargs nor rm expands wildcards (only bash does).

    rm: cannot remove ‘/’: Is a directory