Re: [bug #61774] Docs for find -delete out of sync
admin4 <[email protected]>
| Newsgroups | gmane.comp.gnu.findutils.bugs |
|---|---|
| Message-ID | <[email protected]> |
no worries, this will be the last feedback to this problem-challenge. > Beyond clearly documenting how to use the tool (which I think we do) > I'm not sure what to do about the risk that admin4 is pointing out. but the UNIX philosophy is to simplify, simplify, simplify,and pretty much follow that principle and it works wonders :) what about simplifying the usability & build in fail safes? so everyone here says it is intended behavior that find -delete -name "*searchforthis*" just deletes everything under the current dir . ok, guess there will have to be a find2 then > Well, other than making the user pass a quiz on how to use it the > first time they invoke it, which isn't at all in the spirit of Unix > and would be hard to do in a POSIX-compliant way that wasn't deeply > user-surprising. try it out as root in / and have phun restoring! this intended behaviour by find forces users to transition from ext4 to zfs or btrfs and will still cost 3 years of sorting 1 million photorec restored jpg (without the filenames) by hand (until an AI comes up and does the job) so cu in 2025