|
发表于 2004-6-2 14:17:04
|
显示全部楼层
n=$[10+1] #有问题!
正确的应该是:
n=$((10+1))
or
n=expr 10 + 1
root@test:~ # sh hjq.sh
1lease enter :
': not a valid identifierput
'jq.sh: line 4: syntax error near unexpected token `in
'jq.sh: line 4: `case $input in
按教程中的case语句的例程输入.也是出错
是格式出问题了!! |
|