From 37fd508a594ad36846a545a535f2c503a1e4234d Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Thu, 28 Oct 2021 18:19:07 +0200 Subject: [PATCH] Path is also a failglob exception --- doc_src/language.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc_src/language.rst b/doc_src/language.rst index 429eac113..97ad213f3 100644 --- a/doc_src/language.rst +++ b/doc_src/language.rst @@ -475,7 +475,7 @@ Examples: - ``~/.*`` matches all hidden files (also known as "dotfiles") and directories in your home directory. -For most commands, if any wildcard fails to expand, the command is not executed, :ref:`$status ` is set to nonzero, and a warning is printed. This behavior is like what bash does with ``shopt -s failglob``. There are exactly 4 exceptions, namely :ref:`set `, overriding variables in :ref:`overrides `, :ref:`count ` and :ref:`for `. Their globs will instead expand to zero arguments (so the command won't see them at all), like with ``shopt -s nullglob`` in bash. +For most commands, if any wildcard fails to expand, the command is not executed, :ref:`$status ` is set to nonzero, and a warning is printed. This behavior is like what bash does with ``shopt -s failglob``. There are exceptions, namely :ref:`set ` and :ref:`path `, overriding variables in :ref:`overrides `, :ref:`count ` and :ref:`for `. Their globs will instead expand to zero arguments (so the command won't see them at all), like with ``shopt -s nullglob`` in bash. Examples::