Find out what version of BASH a script needs

Viewed 193

I wrote a shell script that uses a few BASH specific commands, such as [[ ... ]]. I know that some BASH features are only available in BASH 4 or newer. How can I find out what version of BASH I need for this script without trying numerous different versions?

Is there some kind of tool that can check the needed minimum version?

The source code is available on GitHub at https://github.com/JEFF-Media-GbR/RandomRound/blob/master/randomround

2 Answers
Related