From bf2fa6ef46793580917858929c9bdbe1e5120630 Mon Sep 17 00:00:00 2001 From: Fabian Boehm Date: Sun, 14 Jan 2024 11:06:51 +0100 Subject: [PATCH] docs: Explain globs more in fish-for-bash-users --- doc_src/fish_for_bash_users.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc_src/fish_for_bash_users.rst b/doc_src/fish_for_bash_users.rst index 61e47bed0..fcf3f2cba 100644 --- a/doc_src/fish_for_bash_users.rst +++ b/doc_src/fish_for_bash_users.rst @@ -115,6 +115,10 @@ will not match any files. 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 ` for more. Quoting