Fix bashisms in test scripts
4 files changed