There is a clear distinction between the usage of ' '
and " "
.
When ' '
is used around anything, there is no "transformation or translation" done. It is printed as it is.
With " "
, whatever it surrounds, is "translated or transformed" into its value.
By translation/ transformation I mean the following:
Anything within the single quotes will not be "translated" to their values. They will be taken as they are inside quotes. Example: a=23
, then echo '$a'
will produce $a
on standard output. Whereas echo "$a"
will produce 23
on standard output.