安装lispbox时使用tar命令将压缩文件解压之后cd进入之后在运行.sh文件时出现了如下情况。

$ sh lispbox.sh
lispbox.sh: : lispbox.sh: Bad substitution

提示

bad substitution

这是因为linux有不同的shell 使用sh运行错误应该使用bash运行即可。

改成bash -x lispbox.sh即可!

$ bash -x lispbox.sh 
05-04 07:28