Hi, Using coreutils 5.94, the command rmdir -p foo/bar/nonexistent does not remove the `foo' or `foo/bar' empty directories if the mentioned subdirectory (foo/bar/nonexistent) does not exist.
The documentation (man, info, --help) do not specify the behavior in this case. They only say this command is similar to "rmdir foo/bar/nonexistent foo/bar foo" but gives no clue what the word "similar" means. However, as "mkdir -p" succeeds if part of the tree is already created, I'd expect "rmdir -p" to succeed if part of the tree is already removed. That is, "rmdir -p foo/bar/nonexistent" would ignore the ENOENT from the removal of `foo/bar/nonexistent', and then try to remove `foo/bar' and `foo'. This way it would also be more "similar" to what the docs say it is similar to. Thx, Egmont _______________________________________________ Bug-coreutils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-coreutils
