Yes, that verbiage is wrong. I suspect the final sentence was intended to
be this:

In fish you would type **/*.fish to match files ending in ".fish" in
subdirs but not the PWD. If you want to include files in the PWD as well as
subdirs just type **.fish.

On Fri, Aug 18, 2017 at 3:44 PM, Mark Volkmann <r.mark.volkm...@gmail.com>
wrote:

> In the documentation on wildcards I see this:
>
>    - ** matches any string of characters. This includes matching an empty
>    string. The matched string may include the / character; that is, it
>    recurses into subdirectories. Note that augmenting this wildcard with other
>    strings will not match files in the current working directory ($PWD)
>    if you separate the strings with a slash ("/"). This is unlike other shells
>    such as zsh. For example, **\/*.fish in zsh will match .fish files in
>    the PWD but in fish will only match such files in a subdirectory. In fish
>    you should type ***.fish to match files in the PWD as well as
>    subdirectories.
>
> But when I am in a directory that contains .fish files and has
> subdirectories that also contain .fish files, I get the same result from
> "ls **.fish" and "ls ***.fish". Both display matches in the PWD. Is the
> documentation wrong?
>
> --
> R. Mark Volkmann
> Object Computing, Inc.
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Fish-users mailing list
> Fish-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fish-users
>
>


-- 
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to