2 ms·
The * character is addressed in pattern matching rather than parameter expansion. From the bash manpage (version 5.0): The special pattern characters have the
by dredmorbius 5y ago
The * character is addressed in pattern matching rather than parameter expansion.
From the bash manpage (version 5.0):
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 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.
The GNU bash manual describes the '-f' option as "Disable filename expansion (globbing)."
"Globbing" is how * expansion is generally referenced in other documents, if not often within the bash manpage or info pages themselves.