問題は、前に発見されていない突然今日のデバッグシェル
08:baseの値が大きすぎます
<pre name="code" class="plain" style="margin: 4px 0px; background-color: rgb(240, 240, 240);">if [ $(($(date "+%M")%5)) -eq $((0)) ];then
echo 111
fi
時間で見つかった最後の追跡問題08分、09分で、この問題に直面するだろう、情報へのアクセス
Numbers starting with leading 0 are Octal numbers (base 8) in many programming
languages including C, Perl and shell. Valid octal digits are
0,1,2,3,4,5,6,7 so it barfs if it sees an 8 or a 9. You probably want
to work in straight numbers and make a leading 0 in your output
format with a sprintf("%02d") kind of formatting thing.
Anything starting with 0x or 0X is a hex number.
So the error message means exactly as it says- it's an error from
the let function complaining about the value being too big for the base.
Have fun,
Stuart.
オリジナルのポストアドレスします。http:+ベース用+余りに+素晴らしい+ //www.google.com/searchクライアント=サファリ&RLS = ZH-CN&Q =値&すなわち= UTF-8&OE = UTF-8?
ソリューション、[OK]を10進数として定義されている10#の増加
<pre name="code" class="plain" style="margin: 4px 0px; background-color: rgb(240, 240, 240);">if [ $((10#$(date "+%M")%5)) -eq $((0)) ];then
echo 111
fi