【发布时间】:2013-12-09 09:06:56
【问题描述】:
我运行了一个部署脚本来将我的服务器设置为 root。然后我尝试运行另一个名为 test.sh 的脚本,其中包含以下几行:
# Logging
exec > >(tee -a /var/log/test_full.log)
exec 2> >(tee -a /var/log/test_error.log)
但是当我尝试这个时,我得到了以下错误:
test.sh: 19: test.sh: Syntax error: redirection unexpected
您认为导致此问题的原因可能是什么?我以前没有听说过这个错误。
【问题讨论】: