首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 操作系统 > UNIXLINUX >

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

2013-01-07 
请教高手,一个简单的shell脚本问题???#!/bin/shfor tool in autoconf automake bison gcc make m4 libtool

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

要小写。

热点排行