Hmm. shopt -s globstar
should work.
To debug, make sure you are running Bash 4:
$SHELL --version
Then check the setting of globstar
:
shopt globstar
If it is unset, try setting it manually:
shopt -s globstar
Now see if that works. If it does, you might want to look into why your .bashrc
isn't working. Did you remember to restart you shell after editing your .bashrc
, or load it with . .bashrc
?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…