Built-in `find` doesn't support `-regex` and `-regextype` · Issue #2882 · go-task/task · GitHub
Skip to content

Built-in find doesn't support -regex and -regextype #2882

Description

@Pistonight

Description

Use find command with -regex on Windows, the built-in find command doesn't support it

Since i use uutils/findutils, the currently workaround is using $(which find) (with which installed on windows)

Version

3.51.1, 3.52 nightly

Operating system

Windows

Experiments Enabled

No response

Example Taskfile

version: '3'

tasks:
  test:
    - find . -regex '.*\.h'

Activity

  1. trulede commented on Jun 13, 2026

    @trulede
    Contributor

    The call here does not support regex:
    https://github.com/u-root/u-root/blob/72c6ff77a6a912fea5d63a6a87eef531596cb0e8/cmds/core/find/find.go#L159

    The underlying package of course does:
    https://github.com/u-root/u-root/blob/main/pkg/core/find/find.go#L95

    @Pistonight you may want to open an issue at the above repo, and either provide a PR or kindly ask for assistance. I will label this issue accordingly. Link back to the issue/pr here so we can be informed when the change is available.

  2. added theissue type on Jun 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    dep: u-root/u-rootIssues related to the upstream core utils used by Task.

    Fields

    No fields configured for feature.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions