我有以下脚本运行为:
>> bash test.sh < 0 0
内部 test.sh
read $sni
read $snf
echo 'Run between '$sni' and '$snf
for i in {sni..snf}
do
done
但我收到以下错误:
test.sh: line 14: [: {sni..snf}: integer expression expected
test.sh: line 19: [: {sni..snf}: integer expression expected
如何使循环变量整数?谢谢。