Skip to content

globstar option to make ** recursively match nested directories. #171

@shanewilson

Description

@shanewilson

Hi - I was wondering if there were any plans to add support for globstar for nested directories?

Right now I can fake it by splitting the pattern on ** and mixing and matching pathname:true/false but it would be nice to have this built in.

https://www.codeprocess.io/recursively-walk-a-directory-hierarchy-with-bash-globstar/

https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html

The special pattern characters have the following meanings:

*
Matches any string, including the null string. When the globstar shell option is enabled, and '*' is used in a filename expansion context, two adjacent '*'s used as a single pattern will match all files and zero or more directories and subdirectories. If followed by a '/', two adjacent '*'s will match only directories and subdirectories.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions