globbing

The step where bash replaces a word containing a star, a question mark or square brackets with the sorted list of file names that match it.

In more detail

The command never sees the pattern, only the matching names. If nothing matches, bash leaves the pattern as it is by default. It also applies to unquoted variables, so a star stored in a variable turns into file names unless quoted.

Related terms

Taught in

References