编译时bad substitution的解决办法

由于使用的使用的编译器不同导致, 需要使用shell为  

#!/bin/bash

即可。

原文地址:https://www.cnblogs.com/rohens-hbg/p/6370451.html