bash脚本遇到一个小问题
发表于 : 2010-09-27 1:10
刚入门,写一个小脚本。其中用到declare -i num=$another_num 类似的语句来声明一个整形变量,但调试运行时有如下问题:
not found是什么原因啊?
代码: 全选
+ declare -i USER_FOOTPRINT=3
mentohustGUI.sh: 1: declare: not found