Библиотека сайта rus-linux.net
Bash does carry out filename
-- a process known as globbing -- but
this does not use the standard RE set.
Instead, globbing recognizes and expands wild
cards. Globbing interprets the standard wild
-- * and
?, character lists in
square brackets, and certain other special characters (such
as ^ for negating the sense of a match).
There are important limitations on wild
card characters in globbing, however. Strings containing
* will not match filenames that
start with a dot, as, for example,
? has a different
meaning in globbing than as part of an RE.
Bash performs filename expansion on unquoted command-line arguments. The echo command demonstrates this.
It is possible to modify the way Bash interprets
special characters in globbing. A set -f
command disables globbing, and the
See also Example 10-4.
Filename expansion means
expanding filename patterns or templates containing special
characters. For example,
Filename expansion can match dotfiles, but only if the pattern explicitly includes the dot as a literal character.