On my unix FreeBSD 6.3
mkdir -p 1111/11/src 1111/234/src 1111/adsv/src
rm -rf 1111/*/src
Deletes all src sub directories for in 1111 directory
On WinXP SP2:
C:\>c:\progra~1\gnuwin32\bin\mkdir -p 1111/11/src 1111/234/src 1111/adsv/src
C:\>c:\progra~1\gnuwin32\bin\rm -rf 1111/*/src
c:\progra~1\gnuwin32\bin\rm: rm: can not run lstat for `1111/*/src': Invalid
argument
Last week I have downloaded latest GetGnuWin32 and have downloaded all new
unilities
http://sourceforge.net/projects/getgnuwin32
I do not know which version of coreutils I have. and where I can update them
if I have old...
----- Original Message -----
From: "Eric Blake" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <bug-coreutils@gnu.org>
Sent: Thursday, April 10, 2008 4:06 PM
Subject: Re: BUG rm -rdf */*/src
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to [EMAIL PROTECTED] 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 [EMAIL PROTECTED]
-----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-----
_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils