The interpreter of bash ptest script tests/getopts5.sub is /local/bin/bash which is not suitable for oe. Use /bin/bash instead.