ubuntu---shell出现bad substitution

首先,需要在首行指定#!/bin/bash。

其次,还是仔细的检查了代码,原来变量引用是$(),而不是${}

猜你喜欢

转载自www.cnblogs.com/carle-09/p/12597462.html
今日推荐