读书人

一个简单的shell脚本有关问题?

发布时间: 2013-01-07 10:02:24 作者: rapoo

请教高手,一个简单的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

要小写。

读书人网 >UNIXLINUX

热点推荐