Skip to content

Define behavior of globstar (**) #342

Open
@joachimmetz

Description

@joachimmetz

Define behavior of globstar (**)

Bash supports:

  • stand-alone **, behaves like */**
  • a prefix d**, behaves like d*/**
  • a suffix **c, behaves like *c/**
  • a prefix and suffix d**c, behaves like d*c/**

From bash manual

*      Matches any string, including the null string.  When the globstar shell option is enabled, and * is used in a pathname 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

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions