After expanding a variable, the shell splits the result on spaces, tabs and newlines (IFS) and then applies globbing. Quoting an expansion as “$var” prevents both.
Word splitting
The shell step that splits an unquoted expansion into separate words.
After expanding a variable, the shell splits the result on spaces, tabs and newlines (IFS) and then applies globbing. Quoting an expansion as “$var” prevents both.