Fix that REPL crashes in shell mode on $a<tap> and make it auto complete $a<tab> in shell mode.