shell脚本错误,求助!
发表于 : 2012-03-26 15:25
#! /bin/bash
# int_str.sh
a=1024
a=$a+1
echo "The value of a is :$a"
b=102a
echo "The value of b is :$b"
declare -i b
echo "The value of b is :$b"
b=$b+1
declare -i b=$b+1
echo "The value of b is :$b"
c=""
echo "The value of c is :$c"
c=$c+1
echo "The value of c is :$c"
d=$d+1
echo "The value of d is :$d"
exit 0
求大侠解答?
# int_str.sh
a=1024
a=$a+1
echo "The value of a is :$a"
b=102a
echo "The value of b is :$b"
declare -i b
echo "The value of b is :$b"
b=$b+1
declare -i b=$b+1
echo "The value of b is :$b"
c=""
echo "The value of c is :$c"
c=$c+1
echo "The value of c is :$c"
d=$d+1
echo "The value of d is :$d"
exit 0
求大侠解答?