On Saturday 27 of December 2008 07:06:48 Eric Blake wrote: > According to Joshua Hudson on 12/26/2008 10:01 PM: > > I would suggest an option kind of like -xdev to not cross mount points > > and therefore prevent a lot of stupid disasters. > > Kind of like rm -rf / is always a bad idea, rm -rf /tmp/* while > > another filesystem is mounted in /tmp is always a bad idea. > > > > No, I haven't made that mistake myself yet. > > Thanks for the report. However, GNU findutils already provides this > ability: > > find /tmp -depth -xdev -delete > > It seems to me to be hard to justify adding extensions to rm when another > tool can already do the desired filtering job. I can see we already have such option in rm: --one-file-system (introduced in coreutils 6.5 according to NEWS)
Kamil _______________________________________________ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils