发布于 4年前

sh: 1: Syntax error: Bad fd number 错误

The problem could be, that in Ubuntu 11.x /bin/sh is linked to /bin/dash and not to bin bash.
check the link:

ls -l /bin/sh

If /bin/sh is a link to /bin/dash, change it to /bin/bash.

sudo mv /bin/sh /bin/sh.orig
sudo ln -s /bin/bash /bin/sh
©2020 edoou.com   京ICP备16001874号-3