nullglobis disabled, the word is left unchanged. If the
nullgloboption is set, and no matches are found, the word is removed. If the
failglobshell option is set, and no matches are found, an error message is printed and the command is not executed. If the shell option
nocaseglobis enabled, the match is performed without regard to the case of alphabetic characters.
When a pattern is used for filename generation, the character ‘.’
at the start of a filename or immediately following a slash
must be matched explicitly, unless the shell option
dotglob is set.
When matching a file name, the slash character must always be
In other cases, the ‘.’ character is not treated specially.
See the description of
shopt in Bash Builtins,
for a description of the
shell variable may be used to restrict the set of filenames matching a
pattern. If GLOBIGNORE
is set, each matching filename that also matches one of the patterns in
GLOBIGNORE is removed from the list of matches. The filenames
. and ..
are always ignored when GLOBIGNORE
is set and not null.
However, setting GLOBIGNORE to a non-null value has the effect of
shell option, so all other filenames beginning with a
‘.’ will match.
To get the old behavior of ignoring filenames beginning with a
‘.’, make ‘.*’ one of the patterns in GLOBIGNORE.
dotglob option is disabled when GLOBIGNORE