find -name should ignore trailing slashes

Denys Vlasenko vda.linux at googlemail.com
Fri Nov 25 19:15:49 UTC 2016


On Mon, Nov 14, 2016 at 3:36 AM, Tavian Barnes
<tavianator at tavianator.com> wrote:
> 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 /).

Fixed in git. Thanks.


More information about the busybox mailing list