docs: Slight rewording on the unmatched globs faq

[ci skip]
This commit is contained in:
Fabian Homborg
2020-05-27 18:11:41 +02:00
parent ec267a1d54
commit 1dfc701ec6

View File

@@ -280,7 +280,7 @@ or
appear to work, because most of the time the string doesn't match and so it passes along the `string-*`, which is then interpreted by the receiving program.
But it also causes bash to need workarounds like
But it also means that these commands can stop working at any moment once a matching file is encountered (because it has been created or the command is executed in a different working directory), and for bash to need workarounds like
.. code-block:: sh
@@ -292,8 +292,6 @@ But it also causes bash to need workarounds like
(from http://mywiki.wooledge.org/BashFAQ/004)
And for commands to suddenly stop working once a file with a matching name is created.
For these reasons, fish does not do this, and instead expects asterisks to be quoted or escaped if they aren't supposed to be expanded.
This is similar to bash's "failglob" option.