sh:Syntax error: “(“ unexpected (expecting “;;“)

现象:可有正常执行的sh脚本,用不来了
处理:

  1. 查看/bin/sh 的链接
ls -l /bin/sh

发现sh指向dash
2. 重新配置dash

dpkg-reconfigure dash
# 选择no

你可能感兴趣的:(shell,linux,bash)