Hi. I am receiving this error message for the highlighted line (let "total=$total+$sales").
line 11: let: total+sales:expression recursion level exceeded (error token is "total+sales")
counter=0
sales=0
total=0
echo "enter sales price"
read sales
total=total+sales
while test $sales ; do
let "counter=$counter+1"
let "total=$total+$sales"
done
echo $sales
echo $counter
echo $total
Is anyone familiar with this error message?
Thank you
Methyl, thank you for pointing this out. I am closing this thread as a duplicate. Please continue the discussion on the other thread, i.e. Running Total Running Wild