En la respuesta a la pregunta sobre habilitar comodines recursivos:
bash - ¿Qué se expande recursivamente a todos los archivos en el directorio actual?
globstar podría activarse mediante shopt -s globstar :
Publico un fragmento de la respuesta como se muestra a continuación:
Para que funcione el globo de doble asterisco, la opción
globstardebe configurarse (predeterminado: activado):
shopt -s globstar
Desde man bash :
globstar
If set, the pattern ** used in a filename expansion con‐
text will match a files and zero or more directories and
subdirectories. If the pattern is followed by a /, only
directories and subdirectories match.
Sin embargo, encuentro un error cuando lo probé
$ shopt -s globstar
-bash: shopt: globstar: invalid shell option name
$ bash --version
GNU bash, version 4.4.19(1)-release (x86_64-apple-darwin17.3.0)
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.