find . -delete gives an error message for the . directory entry

Ari Sundholm ari at tuxera.com
Fri Sep 25 15:01:20 UTC 2015


Hello!

Busybox (git HEAD) seems to give an error when doing a "find . -delete"
within a directory:

------------------>8-------------------------------------------------
~/busybox/foobarbaz$ ls
~/busybox/foobarbaz$ find
.
~/busybox/foobarbaz$ find . -delete
~/busybox/foobarbaz$ echo $?
0
~/busybox/foobarbaz$ ../busybox find . -delete
find: .: Invalid argument
~/busybox/foobarbaz$ echo $?
0
------------------>8-------------------------------------------------

This error is not given by the findutils version, as shown above.
Strangely enough, the error is not reflected in the return value. This
happens also when the directory is non-empty.

Best regards,
Ari Sundholm
ari at tuxera.com



More information about the busybox mailing list