I have script code that I think they look the same, but they must work differently.
BASEDIR=$(basename $0)
SN="$(basename $0)"
Following the reference, double quotes are
How to suppress most of the interpretation of a sequence of characters.
In bash, I typed both, but the results are the same. What is really a difference between these two?