Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Apr 2013 08:23:05 -0400
From:      Eitan Adler <lists@eitanadler.com>
To:        Jilles Tjoelker <jilles@stack.nl>
Cc:        FreeBSD Hackers <freebsd-hackers@freebsd.org>, Brooks Davis <brooks@freebsd.org>
Subject:   Re: Some improvements to rm(1)
Message-ID:  <CAF6rxgnyOizqdkkG2q17z6uk7=tLyO6WqyzzE-xsgd_Q2a8Gbw@mail.gmail.com>
In-Reply-To: <20130426122214.GA9086@stack.nl>
References:  <CAF6rxg=5aAyk88KcbuGhG1Nwn5HdYqMiaT7umX2EOLApDwOk4Q@mail.gmail.com> <20130426025049.GC50623@lor.one-eyed-alien.net> <CAF6rxgm6J63M7JO4%2BxqwPNu1KwTrmEiOK5YKT5hYXb5yEag0Zg@mail.gmail.com> <20130426122214.GA9086@stack.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
On 26 April 2013 08:22, Jilles Tjoelker <jilles@stack.nl> wrote:
> On Thu, Apr 25, 2013 at 10:56:10PM -0400, Eitan Adler wrote:
>> On 25 April 2013 22:50, Brooks Davis <brooks@freebsd.org> wrote:
>> > On Thu, Apr 25, 2013 at 10:16:32PM -0400, Eitan Adler wrote:
>> >> Anyone have thoughts on the following?
>
>> >> commit 82c78ba923d8ce4a1bfbb309658c49021c8bb384
>> >> Author: Eitan Adler <lists@eitanadler.com>
>> >> Date:   Thu Apr 25 22:14:49 2013 -0400
>
>> >>     Take some improvements from DragonFlyBSD:
>> >>       - add const where appropriate
>> >>       - add static where appropriate
>> >>       - fix a whitespace issues
>> >
>> > The no-op changes look more correct to me.
>
>> > I think the -x option seems a bit odd.  What is the use case?  At a
>> > first thought, it seems to raise more questions than it resolves.
>
>> It goes along with cp -x, find -x, and others.
>
>> Quick example #1: You have /usr/ports /usr/ports/distfiles as
>> different mount points it lets you wipe /usr/ports without wiping your
>> distfile cache.
>
>> Quick example #2: You have /usr/src/ null mounted in every user's
>> /home/ and you want to wipe one home directory.
>
> Hmm, isn't this already possible using  find -x DIR -delete  ?

Yes, rm's functionality can be fully replicated by find.


-- 
Eitan Adler



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAF6rxgnyOizqdkkG2q17z6uk7=tLyO6WqyzzE-xsgd_Q2a8Gbw>