function HelloWorld()
{
var1=$1
echo ${var1[@]}
echo $1
echo ${1[@]}
}
HelloWorld "Hello World"
echo ${var1[@]} will run without issues but echo ${1[@]} gives me 'bad substitution.' I am not understanding the difference between these two cmds if var1 is the same as $1?