I'm very new to shell script. I'm learning the basic of it. My very simple for loop is not working. It always stops at the first iteration. I already follow the document to create an array variable and using for loop with super simple code.
#!/bin/bash
LIST=()
LIST+=('aaa')
LIST+=('bbb')
LIST+=('ccc')
for i in $LIST
do
echo '----------'$i'----------'
done
It only show 'aaa' then stop the loop. I really have no idea. Please help.