Say I have a script that has:
command $1
Also say command
has an optional parameter so it could also be command $1 $2
.
What happens if $1
includes a space here (let us assume $1=A B
)? Will command be interpreted as command A B
, or command A\ B
where A B
is a single variable?