- 论坛徽章:
- 0
|
本帖最后由 聪聪知不道 于 2010-09-07 10:36 编辑
回复 聪聪知不道
我也问过,看连接
好看的附件 发表于 2010-09-07 10:21 ![]()
谢谢.
另31楼
------------------------------------------------------
其实这种用法已经过时了,嘿嘿:
$[ ... ]
integer expansion.
Evaluate integer expression between $[ ].
a=3
b=7
echo $[$a+$b] # 10
echo $[$a*$b] # 21
Note that this usage is deprecated, and has been replaced by the (( ... )) construct.
(( ))
integer expansion.
Expand and evaluate integer expression between (( )).
-------------------------------------------------------
这段英文哪儿看的啊,为啥man上没有... |
|