Hello World!
#!/bin/bash
#
A=""
read -P "输入测试数值:" A
if [ ${A:-none} == none ];then
echo "No"
else
echo "OK"
fi
echo "$A"
1
2
2
Hello World!
#!/bin/bash
#
A=""
read -P "输入测试数值:" A
if [ ${A:-none} == none ];then
echo "No"
else
echo "OK"
fi
echo "$A"