We use this command to run all tests using mocha: mocha ./src/test/**/*.js --recursive
Notice the double **
. It works fine on any modern bash, except on the CI system which is a RedHat with GNU bash, version 3.2.25(1)-release (x86_64-redhat-linux-gnu)
.
I read that v3 does not support double globstar.
- I tried to enable it by executing
shopt -s globstar
- but failed saying
shopt: globstar: invalid shell option name
.
- but failed saying
- I asked the client's devops to update the bash
- but he said "it doesn't show me that a new version of bash is available".
- This other answer was not helpful.
Question: How can I execute a command with **
on a linux bash v3.*? Any workaround?