Re: Some improvements to rm(1)

2013-04-26 Thread Jilles Tjoelker
On Fri, Apr 26, 2013 at 08:33:54AM -0500, Joshua Isom wrote: > On 4/26/2013 7:23 AM, Eitan Adler wrote: > > Yes, rm's functionality can be fully replicated by find. > As well as anything using -R. Emulating other -R things using find becomes quite slow when you don't want to impose {PATH_MAX} lim

Re: Some improvements to rm(1)

2013-04-26 Thread Dan Rue
On Thu, Apr 25, 2013 at 9:50 PM, Brooks Davis wrote: > 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. > I was cleaning up a system a year ago and I had an "rm -rf" traverse into a production NFS mountpoint..

Re: Some improvements to rm(1)

2013-04-26 Thread Joshua Isom
On 4/26/2013 7:23 AM, Eitan Adler wrote: Yes, rm's functionality can be fully replicated by find. As well as anything using -R. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, se

Re: Some improvements to rm(1)

2013-04-26 Thread Eitan Adler
On 26 April 2013 08:22, Jilles Tjoelker wrote: > On Thu, Apr 25, 2013 at 10:56:10PM -0400, Eitan Adler wrote: >> On 25 April 2013 22:50, Brooks Davis wrote: >> > On Thu, Apr 25, 2013 at 10:16:32PM -0400, Eitan Adler wrote: >> >> Anyone have thoughts on the following? > >> >> commit 82c78ba923d8ce

Re: Some improvements to rm(1)

2013-04-26 Thread Jilles Tjoelker
On Thu, Apr 25, 2013 at 10:56:10PM -0400, Eitan Adler wrote: > On 25 April 2013 22:50, Brooks Davis 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 >

Re: Some improvements to rm(1)

2013-04-25 Thread Eitan Adler
On 25 April 2013 22:56, Eitan Adler wrote: > On 25 April 2013 22:50, Brooks Davis 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 >>> Date: Thu Apr

Re: Some improvements to rm(1)

2013-04-25 Thread Eitan Adler
On 25 April 2013 22:50, Brooks Davis 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 >> Date: Thu Apr 25 22:14:49 2013 -0400 >> >> Take some improveme

Re: Some improvements to rm(1)

2013-04-25 Thread Brooks Davis
On Thu, Apr 25, 2013 at 10:16:32PM -0400, Eitan Adler wrote: > Anyone have thoughts on the following? > > commit 82c78ba923d8ce4a1bfbb309658c49021c8bb384 > Author: Eitan Adler > Date: Thu Apr 25 22:14:49 2013 -0400 > > Take some improvements from DragonFlyBSD: > - add const where app

Some improvements to rm(1)

2013-04-25 Thread Eitan Adler
Anyone have thoughts on the following? commit 82c78ba923d8ce4a1bfbb309658c49021c8bb384 Author: Eitan Adler 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