Mailinglist Archive: opensuse-bugs (4667 mails)

< Previous Next >
[Bug 639744] bash completions of sudo should look in standard sbin locations too.
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Mon, 20 Sep 2010 11:56:22 +0000
  • Message-id: <20100920115622.7272B245520@xxxxxxxxxxxxxxxxxxxxxx>

https://bugzilla.novell.com/show_bug.cgi?id=639744

https://bugzilla.novell.com/show_bug.cgi?id=639744#c3


--- Comment #3 from Dr. Werner Fink <werner@xxxxxxxxxx> 2010-09-20 11:56:21 UTC
---
_rootpath_ ()
{
local c=${COMP_WORDS[COMP_CWORD]}
local os="-h -K -k -L -l -V -v -b -E -H -P -S -i -s"
local ox="-r -p -t -u"
case "$c" in
-*) COMPREPLY=($(compgen -W "$os $ox" -- "$c")) ;;
*) COMPREPLY=($(PATH=/sbin:/usr/sbin:$PATH compgen -c -- "${c}"))
esac
}

complete ${_def} -F _rootpath_ sudo

.. should do the job

--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >
References