[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Is the following the correct behaviour?
$ mkdir /tmp/rmdirtest
$ mkdir /tmp/rmdirtest/x
$ mkdir /tmp/rmdirtest/x/y
$ touch /tmp/rmdirtest/z
$ rmdir -p /tmp/rmdirtest
rmdir: /tmp/rmdirtest: Directory not empty
There is a package (graphics/librsvg) that is failing to install
because "rmdir -p" fails trying to remove /usr/pkg/lib. Not
surprisingly, that directory is not empty. It seems to me that "rmdir
-p" should silently ignore directories that it cannot remove.
Certainly the package maintainer for graphics/librsvg thinks so as well.
D'Arcy J.M. Cain <darcy%NetBSD.org@localhost>
Main Index |
Thread Index |