Skip to content

findutils find broken in Powershell when more than one file matches #122

@scivision

Description

@scivision

suppose a directory with two or more files matching a glob pattern. Say files "one.md" and "two.md".
The "find" command breaks with any glob pattern matching more than one file in Powershell.

find . -name '*.md'
# or
find . -name "*.md"

find: Unrecognized flag: 'one.md'

This does work from ComSpec cmd.exe with double quotes only:

find . -name "*.md"
.\one.md
.\two.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions