bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Suggestion for rmdir


From: Eric Blake
Subject: Re: Suggestion for rmdir
Date: Sat, 27 Dec 2008 07:21:40 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.18) Gecko/20081105 Thunderbird/2.0.0.18 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Adam Jimerson on 12/26/2008 4:14 PM:
> When removing a non empty directory with 'rmdir' I think the
> "--ignore-fail-on-non-empty" argument is over the edge.  That is a lot
> of typing when rm --recursive can do the same thing, and it is easier to
> remember as well.  Maybe make the "--ignore-fail-on-non-empty" something
> shorter like force or even recursive will work.

Thanks for the report.  However, coreutils use GNU getopt semantics, where
unambiguous abbreviations of long options are recognized.  Therefore, you
need not type the full name, and can get by with:

rmdir --i

until such day that we introduce another long option whose name begins
with i.  Meanwhile, your claim that 'rmdir --ignore-fail-on-non-empty' is
equivalent to 'rm -r' is false; a recursive 'rm' deletes regular files to
cause the directory to become empty and thus removable, while 'rmdir' only
removes directories that were already empty or contain only empty
subdirectories also being removed.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAklWOfQACgkQ84KuGfSFAYDCpgCdEYJ1IhLDRfiL/cM7mw+LR9sh
nGYAnjs9bFS5EZx54sC/kCh7epRQ6+9D
=9Guz
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]