bug in busybox find -prune?

Natanael Copa natanael.copa at gmail.com
Thu Apr 5 14:59:47 UTC 2007


On Thu, 2007-04-05 at 02:28 +0200, Denis Vlasenko wrote:
> On Wednesday 04 April 2007 19:34, Natanael Copa wrote:
> > To reproduce:
> > 
> > ncopa at nc ~/wrk/src/busybox/svn/busybox $ ./busybox_unstripped find
> > findutils/ -prune -name 'f*'
> > findutils/.svn/text-base/find.c.svn-base
> > findutils/.svn/format
> > findutils/find.c
> > findutils/find.o
> > 
> > Expected behaviour:
> > 
> > ncopa at nc ~/wrk/src/busybox/svn/busybox $ /usr/bin/find findutils/ -prune
> > -name 'f*'
> > findutils/a
> > 
> > I have no idea how to fix it.
> 
> Yup. Two bugs here... does attached version work for you?

Still has a bug:
al-1.5 trunk # ./busybox_unstripped find * -prune -name 'f*'
applets/.svn/format
arch/.svn/format
arch/i386/.svn/format
archival/.svn/format
archival/libunarchive/.svn/text-base/filter_accept_list.c.svn-base
...

al-1.5 trunk # find * -prune -name 'f*'
findutils


Natanael Copa




More information about the busybox mailing list