为什么这两个等价
发表于 : 2008-11-12 13:36
就是
#!/bin/bash
# Program:
# User can input 2 integer to cross by
#History:
#2008/11/12 yzq8951
PATH=/bin:/sbin:/usr/sbin:/usr/local/bin:/use/local/sbin:/~/bin
export PATH
echo -e "You should input 2 numbers ,I will cross they"
read -p "first number:" firstnu
read -p "second number:" secnu
declare -i total=$firstnu*$secnu
echo -e "\nThe number $firstnu * $secnu is ==> $total"
declare -i total=$firstnu*$secnu和total=$(($firstnu*$secnu ))是等价的 我对这个$()不太懂
#!/bin/bash
# Program:
# User can input 2 integer to cross by
#History:
#2008/11/12 yzq8951
PATH=/bin:/sbin:/usr/sbin:/usr/local/bin:/use/local/sbin:/~/bin
export PATH
echo -e "You should input 2 numbers ,I will cross they"
read -p "first number:" firstnu
read -p "second number:" secnu
declare -i total=$firstnu*$secnu
echo -e "\nThe number $firstnu * $secnu is ==> $total"
declare -i total=$firstnu*$secnu和total=$(($firstnu*$secnu ))是等价的 我对这个$()不太懂