bug in busybox find -prune?

Natanael Copa natanael.copa at gmail.com
Wed Apr 4 10:34:25 PDT 2007


Hi,

I think I have found a bug in busybox. It's atleast a differnet
behaviour than GNU find.

The problem is that "find -prune <expr>" seems to ignore the prune and
parse the subdir anyway.

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/

I have no idea how to fix it.

Natanael Copa



More information about the busybox mailing list