I'm running OpenSUSE 12.3 (and have seen the behavior since 11), and have found that I can't call Superuser programs (e.g. shutdown, reboot) without using the full path. For me, many of these executables live in /sbin, so instead of using sudo reboot, I have to call sudo /sbin/reboot. Thankfully, when using sudo OpenSUSE's shell (bash) will expand these paths when I press the Tab key, so sudo rebo[Tab] will result in sudo /sbin/reboot.OpenSUSE provides a package by the name of bash-completion which expands the auto-complete functionality of bash to include all sorts of other contexts (e.g. gsettings). Unfortunately, by default, this package does not expand the Superuser executables to their full paths, but just expands the executable name, so sudo rebo[Tab] will result in sudo reboot, which will lead to a sudo: reboot: command not found error.How do I install/run bash-completion yet ensure the autocomplete for Superuser executables expands to the full path?
Enable Bash-Completion to expand Superuser executables to full path
bash;opensuse;autocomplete
Expanding @Gilles's comment to an answer:This question asked about bash-completion expanding /sbin executables to their full paths on Tab, but I have satisfied my requirements by adding the Superuser directories (e.g. /sbin, /usr/sbin, etc.) to the sudo search path.To do this, I had to add the secure_path variable to the Sudoers file (edit with visudo), something like the following line:Defaults    secure_path=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/binIf someone provides a solution to actually expand the path of these executables, I would consider that the true answer to the question, but again, this solution satisfies my requirements.