Wartość zbyt duża dla bazy (token błędu to „09”)

Podczas uruchamiania tej części skryptu bash pojawia się błąd

Scenariusz

value=0
for (( t=0; t <= 4; t++ ))
do
d1=${filedates[$t]}
d2=${filedates[$t+1]}
((diff_sec=d2-d1))
SEC=$diff_sec
compare=$((${SEC}/(60*60*24)))
value=$((value+compare))
done

Wydajność

jad.sh: line 28: ((: 10#2014-01-09: value too great for base (error token is "09")
jad.sh: line 30: /(60*60*24): syntax error: operand expected (error token is "/(60*60*24)")

d1 i d2 to daty w tej formie 2014-01-09 i 2014-01-10

Jakiekolwiek rozwiązanie proszę?

questionAnswers(5)

yourAnswerToTheQuestion