Hi all, Can someone explain to me the following behaviour? I have this script
#!/bin/sh LISTS=('debian-user' 'security-basics' 'hostap' 'pen-test' 'ntbugtraq' 'ion-general' 'vim' 'madwifi'); LIST_COUNT=${#LISTS} echo $LIST_COUNT for ((i=0;i<$LIST_COUNT-1;i++)); do echo /home/bhillis/Maildir/.${LISTS[${i}]}/ done But when I run it I get... 11 /home/bhillis/Maildir/.debian-user/ /home/bhillis/Maildir/.security-basics/ /home/bhillis/Maildir/.hostap/ /home/bhillis/Maildir/.pen-test/ /home/bhillis/Maildir/.ntbugtraq/ /home/bhillis/Maildir/.ion-general/ /home/bhillis/Maildir/.vim/ /home/bhillis/Maildir/.madwifi/ /home/bhillis/Maildir/./ /home/bhillis/Maildir/./ Why does $LISTS have an extra two elements than I specified? I'm following the guide from here http://techrepublic.com.com/5100-1035_11-5820685.html?part=rss&tag=feed&subj=tr Thanks in advance, Byron Hillis (Metrics) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]