I have the following code:
PROJECT_TYPES="iPad iPhone"
ANT_TARGET_NAMES="ipadf ipaf"
INDEX=0
for PROJECT_TYPE in $PROJECT_TYPES; do
echo "${PROJECT_TYPE} => ${ANT_TARGET_NAMES[$INDEX]}"
let "INDEX++"
done
This displays the following lines:
iPad => ipadf ipaf
iPhone =>
How can I change the code so it displays:
iPad => ipadf
iPhone => ipaf
???
Thanks in advance
Mike
foo="bar baz"creates a string with the contentsbar baz. In certain contexts, strings can be split into sequences because of the way they're interpolated (whitespace splitting), but they are not lists.