When a pattern is used for filename expansion, 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 matched explicitly. In other cases, the ‘
.’ character is not treated specially.
See the description of shopt in
The Shopt Builtin, for a description of the
nocaseglob,
nullglob,
failglob, and
dotglob options.