哈哈,这个里面有错误,以防下次再发生
echo -e "Please input three numbers:/c"
read var1 var2 var3
echo "$var1@$var2@$var3@"
if [ "$var1" lt "$var2" -a "$var1" lt "$var3" ]
then
min="$var1"
else
if test "$var2" lt "$var1" -a "$var2" lt "$var3"
then
min="$var2"
else
min="$var3"
fi
fi
echo "minvalue=$min"
注意:lt gt等前面的小横线一定不要忘加了啊,否则很难看出来-lt -gt