You'll want to write this as `"${TESTDIR}"/*.bats` .  When the `*` is inside the quotes, it's treated as a string literal and isn't expanded.        I *think* you don't even need the `*.bats`.  IIRC bats will automatically do that glob if passed a directory. \U0001f638 