2008年5月22日星期四

bash 的双括号支持

bash 3.x 号称支持双括号

thus we could use

for ((a=1; a<= LIMIT ; a++ ))
do

done

in the bash shell script.

但是 solaris 10 上使用的bash 不能支持该双括号
bash --version
GNU bash, version 3.00.16(1)-release (sparc-sun-solaris2.10)
Copyright (C) 2004 Free Software Foundation, Inc.

没有评论: