I hope this isn't too trivial, but for some reason I can't get a simple command to execute.
I'm writing a file manipulation script and I have several directories called test, test2, etc each containing several files.
I type:
rmdir --ignore-fail-on-non-empty test*
I get a prompt with no error messages as if the command executed cleanly. I ls the directory I'm in and get:
test test2 test3 test4
I know I'm missing something obvious; anyone have a clue what it is? Yes, I'm in the parent directory. Yes, the option is typed correctly -- I checked the manpage twice.

rm -r test*but I still want to know what's wrong. :-) – Yitzchak Aug 10 '11 at 17:22