Paul Wise wrote: > Package: coreutils > Version: 8.5-1 > Severity: wishlist > File: /bin/rmdir > X-Debbugs-CC: bug-coreut...@gnu.org > > I would like to be able to do a recursive rmdir. This would save typing > for the cases where I want to remove a whole empty dir hierarchy. > > Currently I do this: > > rmdir --parents foo/bar/baz > > I'd like to just do this: > > rmdir --recursive foo > > or this: > > rmdir -r foo > > Both of these commands should be equivalent to but significantly less > typing than this command: > > find foo -depth -type d -empty -delete
Thanks for the suggestion, but there's no need to add an option to rmdir, when you can accomplish the same thing with a simple shell function or alias: rmdir_r() { find "$@" -depth -type d -empty -delete; } Of course, you might want to extend that to give its own --help and to diagnose a missing argument. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org