So the following commands are giving me different answers than I expect.
Code:
#!/bin/sh
array_2=('1 2' 3 4)
echo With '"$@":'
for i in "${array_2[@]}"
do
echo $i
done
echo With '$@:'
for i in ${array_2[@]}
do
echo $i
done
Output:
With "$@":
1 2
3
4
With $@:
1
2
3
4
Why is $@ "not seeing" that '1 2' are enclosed by single quotes, when "$@" can?