Glob Patterns (* ? [] {}) Playground

Piksel’s stencil over the shelf’s labels: * ? [..] expanded by a model bash before the command runs. Dotfiles, a pattern that matches nothing, and quotes for…

Why it matters

Globs are in every command: cp, rm, ls, find, .gitignore, CI scripts. "Why does * miss .env", "why does rm *.bak say No such file", "why is find -name *.txt odd": all of it is bash expanding the pattern before the program runs.

The key idea

bash expands a pattern into names before the program runs

Common mistakes

Try it in this playground