Ubuntu 16.04.1 LTS
I don't know what I did, everything was working fine, but since today my bash doesn't autocomplete anymore when I use sudo. I can use the autocompletion as normal user, I can use autocompletion as root, I can use autocompletion for directories with sudo, but I can't use autocompletion for files if I use sudo.
If I write:
$sudo vim /etc/ssm[TAB]
it will autocomplete to:
$sudo vim /etc/ssmtp/
but then if I hit [TAB] again, even twice like I was used to list the files in the directory, nothing happens. I already checked and I have the autocompletion enabled in the user .bashrc and also in /etc/bash.bashrc