Search code examples
testingautocompletegnu-coreutils

Ubuntu 18 Autocomplete Bug? "bash: cd: too many arguments"


Autocomplete started working bad after upgrading from ubuntu 16. If I hit tab after

git checkout src/

I get something like this:

$ git checkout src/bash: cd: too many arguments

main/ test/ 

Coincidentally I happened to see the same using the "test" command of gnu-coreutils:

$ ls
pom.xml  src  target
$ test pom.xml
bash: cd: too many arguments

Are the two things maybe connected? Unfortunately I couldn't find any bug after googling it.


Solution

  • I had the same issue. One of my aliases had the name test, lib or root (I don't remember which one) and it was a cd command to a folder. Renaming the alias solved the problem for me.