[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: BUG rm -rdf */*/src
From: |
Eric Blake |
Subject: |
Re: BUG rm -rdf */*/src |
Date: |
Thu, 10 Apr 2008 07:06:08 -0600 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080213 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to address@hidden on 4/10/2008 6:28 AM:
| rm -rdf */*/src
rm -d is deprecated. It does nothing, and you should not need to use it.
~ Newer coreutils don't even document it; the NEWS for 6.0 states:
~ rm's --directory (-d) option is scheduled for removal in 2006. This
~ option has been silently ignored since coreutils 5.0. On systems
~ that support unlinking of directories, you can use the "unlink"
~ command to unlink a directory.
(Hmm, now that it's 2008, maybe it's time to make 'rm -d' issue a failure,
rather than being silently ignored.)
| does not remove directories like this:
| a/b/src
| a/c/src
| b/d/src
It works just fine for me:
$ mkdir -p a/b/src a/c/src b/d/src
$ echo ?/?/src
a/b/src a/c/src b/d/src
$ rm -rf ?/?/src
$ echo ?/?/src
?/?/src
|
| but on unix, win32/cygwin rm works OK
That sentence didn't make sense. What version of coreutils are you
complaining about, and on what platform? Maybe it is time for you to do
an upgrade; the latest stable version is 6.10, with 6.11 due out soon.
- --
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
iEYEARECAAYFAkf+EMAACgkQ84KuGfSFAYCTNgCg0dgNf81DcIHMThIzgkZWEhPo
06kAn032Bj9PybzzdRdK5wS1Fnw8TIXC
=vhtJ
-----END PGP SIGNATURE-----