I have an array
declare -a her=("ger" "blr" "tyg" "")
for i in "${her[@]}"; do
echo $i
done
I get
ger
blr
tyg
But when I try and append to an array I get one long string with no spaces
declare -a you
#without quotes and with quotes
#' " same result
for i in {"fgt","fe","ger"}; do
you+=${i}
done
for i in "${you[@]}"; do
$i
done
Fgtfeger
Any insight on whats happening ? Kinda makes them not as useful
you+=("${i}").declare -p youfor additional clues.