docs: Explain globs more in fish-for-bash-users

This commit is contained in:
Fabian Boehm 2024-01-14 11:06:51 +01:00
parent f4ba2866fc
commit bf2fa6ef46

View file

@ -115,6 +115,10 @@ will not match any files.
There are no options to control globbing so it always behaves like that. There are no options to control globbing so it always behaves like that.
The ``**`` glob will match in subdirectories as well. In other shells this often needs to be turned on with an option, like ``setopt globstar`` in bash.
Unlike bash, fish will also follow symlinks, and will sort the results in a natural sort, with included numbers compared as numbers. That means it will sort e.g. music tracks correctly even if they have numbers like ``1`` instead of ``01``.
See :ref:`Wildcards <expand-wildcard>` for more. See :ref:`Wildcards <expand-wildcard>` for more.
Quoting Quoting