Skip to content

GlobStar support -- ** matches any number of levels #19

@oxinabox

Description

@oxinabox

This is a thing in bash's glob, and in the .gitignore pattern matching.
it is really useful e.g. for getting to the bottom of a directory hierachy.

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.

https://www.gnu.org/software/bash/manual/html_node/Pattern-Matching.html

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions