Nella risposta alla domanda su abilitare i caratteri jolly ricorsivi:
bash - Cosa si espande in modo ricorsivo a tutti i file nella directory corrente?
il globstar potrebbe essere attivato da shopt -s globstar :
Inserisco snippet della risposta come di seguito:
In order for the double-asterisk glob to work, the
globstaroption needs to be set (default: on):
shopt -s globstar
Da 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.
Tuttavia, ho riscontrato un errore durante il tentativo
$ 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.