Search code examples
bashlinux-mint

Whitespace added after path following a command with sudo


When I try to execute a command as super user that is followed by a path, the auto-complete (tab) will produce a whitespace after the folder:

Example, in my home folder:

"sudo cat Doc" <tab>

produces

"sudo cat Documents "

as opposed to

"sudo cat Documents/"

This is quite annoying. Any ideas what may be wrong? Did I break it or is this simply a bug? I am running Linux Mint 13 Mate 64.


Solution

  • This topic seems to fix it. I am still unsure why this occurred though. I am quite certain it wasn't an issue until today.