[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bug with rm
From: |
Eric Blake |
Subject: |
Re: bug with rm |
Date: |
Wed, 23 Jul 2008 06:30:09 -0600 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) Gecko/20080421 Thunderbird/2.0.0.14 Mnenhy/0.7.5.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Eric Blake on 7/23/2008 6:22 AM:
|
| You are correct about the behavior, but just because it is undesirable
| doesn't mean it is a bug.
|
| |
| | I shudder to think of the disastrous consequences this has had.
|
| We feel your pain.
By the way, if you don't mind using GNU extensions, then you can already
use findutils to accomplish this task:
# depth first deletion of only writable files in recursively from .;
# read-only files are left untouched. Additional filters can be added
# before the -delete to further restrict which files are deleted
find -depth -perm /w -delete
- --
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
iEYEARECAAYFAkiHJFEACgkQ84KuGfSFAYArcwCgjaXztEOBJY8yP89dJomgcm91
otIAn1+jSQtp4ON2s7aTSWpFxf8i/eCr
=PHNv
-----END PGP SIGNATURE-----