Carefully Glob What Needs Globbing
Globbing should happen during shell expansion, instead of after. To do this, only normal words that have valid globbing signatures should be expanded in the shell expansion module. Some work may have to be done to check whether a bracket belongs to an array or a glob.