globbing is performed on wildcards and commands right ? how on output ?
– Edward TorvaldsDec 25 '14 at 13:00

3

@edwardtorvalds A command line is processed in several stages. Command substitution takes place before the globbing stage. So if the command's output contains wildcards, it will be expanded. Quoting works normally: prevents the shell from expanding wildcards and compressing and replacing all whitespace with spaces.
– muruDec 25 '14 at 13:10