MYGLOB=* # No quotes around the glob
echo $MYGLOB # Glob is interpreted
MYGLOB="" # Double quotes around the glob
echo “$MYGLOB” # Glob is not interpreted
MYGLOB=’’ # Single quotes around the glob
echo “$MYGLOB” # Glob is not interpreted
echo ‘$MYGLOB’ # Variable is not interpreted
echo $MYGLOB # Glob is interpreted
If I do this on my mac shell:
MYGLOB=’*’ # Single quotes around the glob
echo “$MYGLOB”
and echo $MYGLOB are interpreted.
The shell that’s provided here gives different outputs but also doesn’t agree with what’s written.