From https://unix.stackexchange.com/a/32227/674The main places where it's safe not to use the double quotes are:in an assignment: foo=$bar (but note that you do need the double quotes in export foo=$bar or in array assignments like  array=($a $b));Does it mean that it is not required to double quote $bar in assignment foo=$bar? Why?Why do we need the double quotes in export foo=$bar and in array assignments like array=($a $b)?Thanks.
Why is it not required to double quote `$bar` in assignment `foo=$bar`?
bash;quoting;assignment