Hi,all:
Please look at the following ksh script.
I can't see obvious errors, but in fact, I got the following syntax error reporting:
./test[4]: syntax error at line 4 : `((' unexpected
Can you please help to look into this issue?
How to use arithmetic for? Is there anything wrong with my usage?
Thanks a lot.
Please look at the following ksh script.
Code:
#!/bin/ksh
set -A name 1 2 3 4 5
NUM_MAX=5
for ((i = 0; i <= NUM_MAX-1; i++))
do
echo ${A[$i]}
done
./test[4]: syntax error at line 4 : `((' unexpected
Can you please help to look into this issue?
How to use arithmetic for? Is there anything wrong with my usage?
Thanks a lot.