它是我程序的一部分,
output="$(./t1)" // output=5
echo $output // It displays 5
if test $output -eq 5
then
echo "five" // this if statement works and displays 'five'
fi
case $output in **// this case is not working and giving just default value**
1) echo "one" ;;
2) echo "two" ;;
3) echo "three" ;;
4) echo "four";;
5) echo "five";;
*) echo "wrong choice" ;;
esac // output is wrong choice though it works proper in if statement
我的 bash 脚本有什么错误吗?请帮忙。