I write bash scripts about once every 5 years, so probably a noob question. This is on OSX.
Paired down script:
#!/bin/bash
array=(
'<item name="Alice" title="President"/>'
'<item name="Bob" title="CEO"/>'
)
for k in "${array[@]}"; do
find=${array[$k]}
done
Here is the error:
line 8: <item name="Alice" title="President"/>: syntax error: operand expected (error token is "<item name="Alice" title="President"/>")
Can't figure this one out. Thanks for any help.