find -name should ignore trailing slashes

Tavian Barnes tavianator at tavianator.com
Mon Nov 14 02:36:12 UTC 2016


On 13 November 2016 at 20:53, Tavian Barnes <tavianator at tavianator.com> wrote:
> With busybox 1.25.1, it seems that find -name does not ignore trailing
> slashes as it should.
>
> $ busybox find foo/ -name foo
> $ find foo/ -name foo
> foo/
>
> This behaviour is an official POSIX interpretation:
> https://collaboration.opengroup.org/austin/interps/uploads/40/14959/AI-186.txt
>
> Relevant GNU find bug: https://savannah.gnu.org/bugs/?20970

Relatedly,

$ busybox find / -name /

is also broken (should print /).

-- 
Tavian Barnes


More information about the busybox mailing list