PR: 39604Reviewed by:add_glob:Do not stop scanning if we see '$' as it does more harm than good.For $HOME/tm we should return $HOME/tm*