Skip to content

[BUG] fd -e <ext> extension search matches foo.<ext> in directory names #1693

Open
@qazwsxpawel

Description

@qazwsxpawel

Checks

  • I have read the troubleshooting section and still think this is a bug.

Describe the bug you encountered:

Given the description of the -e option I think it could be reasonable to expect only matching files with a given extension, instead directories with .<ext> suffix are also matched e.g.

~/temp/bar » fd -e b
a.b/

An example of where those kinds of directory names can be found would be package names in some langs e.g. clojure.zip.

Describe what you expected to happen:

No response

What version of fd are you using?

fd 10.2.0

Which operating system / distribution are you on?

Darwin 21.5.0 x86_64

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions