I put the following unsuccessfully to my .bashrc
shopt -s globstar
I am trying to test the command in action by
ls **/*.c
and by comparing it to
ls */*/*.c
How can you enable globstar in Bash 4?
I put the following unsuccessfully to my .bashrc
shopt -s globstar
I am trying to test the command in action by
ls **/*.c
and by comparing it to
ls */*/*.c
How can you enable globstar in Bash 4?
Copyright © 2021 Jogjafile Inc.
Hmm.
shopt -s globstarshould work.To debug, make sure you are running Bash 4:
Then check the setting of
globstar:If it is unset, try setting it manually:
Now see if that works. If it does, you might want to look into why your
.bashrcisn't working. Did you remember to restart you shell after editing your.bashrc, or load it with. .bashrc?