dt-s3-backup icon indicating copy to clipboard operation
dt-s3-backup copied to clipboard

INCLIST & EXCLIST fail when a space is present

Open thornomad opened this issue 14 years ago • 0 comments

Currently the array is handled in such a way that it is separating items by spaces, not by the quotes ... that's because we are using:

for a in ${ARRAY[@]}; do echo ${a}; done

What we need to do is:

for a in ${!ARRAY[*]}; do echo ${ARRAY[a]}; done

This probably exists in a couple places in the code.

Examples: http://www.linuxjournal.com/content/bash-arrays

thornomad avatar Aug 17 '10 13:08 thornomad