>>#/home/sun/moon/mercury/> rm -rf ../*
>This is going to fail because is is going to try deleting the current directory mercury.
By Unix conventions, a directory is just a file (although a special type of one).
A file can be deleted while it's still open: if that's done, the file will keep existing (but it will be unreachable using any filename) as long as it's held open. As soon it's closed, it will be deleted for real.
This is true for all files, including directories.
----------
>> #/home/sun/moon/mercury/> rm -rf ../*.*
>> [...will lead to total destruction]
> Huh?
> [...] but not the recursively to all ancestors.
After a bit of thinking, I see you're correct. It will delete ../.. = /home/sun/moon, but not farther than that.
Consider me humbled, and my "rm -rf" paranoia brought back to sensible (but still sensibly paranoid) levels :)
MK
MK