#! /bin/sh
a=1
b=3
if test $b=$a
then
echo "you input 1"
elif test $b=2
then
echo "you input 2"
else
echo "you input $b"
fi
输出:
you input 1
为什么上面的输出结果是这样?
不是应该输出 you input 3 吗?
#! /bin/sh
a=1
b=3
if test $b=$a
then
echo "you input 1"
elif test $b=2
then
echo "you input 2"
else
echo "you input $b"
fi
输出:
you input 1
为什么上面的输出结果是这样?
不是应该输出 you input 3 吗?