关于shell脚本函数未预期的符号 `}' 附近有语法错误
时间: 2015-09-09来源:开源中国
前景提要
HDC调试需求开发(15万预算),能者速来!>>> function install_yj{ cd ${BUILD} if [ ! -f gmp-6.0.0a.tar.xz ];then wget http://ftp.gnu.org/gnu/gmp/gmp-6.0.0a.tar.xz fi if [ ! -f mpfr-3.1.3.tar.xz ];then wget http://ftp.gnu.org/gnu/mpfr/mpfr-3.1.3.tar.xz fi if [ ! -f mpc-1.0.3.tar.gz ];then wget http://ftp.gnu.org/gnu/mpc/mpc-1.0.3.tar.gz fi if [ ! -f isl-0.15.tar.bz2 ];then wget ftp://gcc.gnu.org/pub/gcc/infrastructure/isl-0.15.tar.bz2 if [ ! -f cloog-0.18.4.tar.gz ];then wget http://www.bastoul.net/cloog/pages/download/count.php3?url=./cloog-0.18.4.tar.gz mv count.php3?url=.%2Fcloog-0.18.4.tar.gz cloog-0.18.4.tar.gz fi if [ ! -f libelf-0.8.13.tar.gz ];then wget http://www.mr511.de/software/libelf-0.8.13.tar.gz fi }


以上是shell脚本函数的一部分,关于执行这部分函数出现:`}' 附近有语法错误
而删除二个if判断语句就没有问题,谁能解释下吗?

科技资讯:

科技学院:

科技百科:

科技书籍:

网站大全:

软件大全:

热门排行