请教高手,一个简单的shell脚本问题???
#!/bin/sh
for tool in autoconf automake bison gcc make m4 libtool
do
echo "Checking for $tool:"
$tool --version
Done
exit 0
上面是一个shell脚本,脚本名为:testsoftware,我输入:
chmod +x testsoftware
./testsoftware
结果是:
./testsoftware: 10: Syntax error: end of file unexpected (expecting "done")
请高手帮忙看下,错误在什么地方?
谢谢!!
------解决方案--------------------Done
===>
done
要小写。