Make sure the version of bash being invoked as interpreter at the top of your shell script (#!/bin/bash or whatever) is also version 4. If you’re doing:
bash --version
and it’s giving you v4, do a which bash to check it’s location.
Make sure the version of bash being invoked as interpreter at the top of your shell script (#!/bin/bash or whatever) is also version 4. If you’re doing:
bash --version
and it’s giving you v4, do a which bash to check it’s location.