Loop over array, preventing wildcard expansion (*)
Your problem is that you want an array, but you wrote a single string that contains the elements with spaces between them. Use an array instead. WHITELIST_DOMAINS=(‘*’ ‘*.foo.com’ ‘*.bar.com’) Always use double quotes around variable substitutions (i.e. “$foo”), otherwise the shell splits the the value of the variable into separate words and treats each word … Read more