- _root_command() wasn't passing name of command that had called it to

_command()
This commit is contained in:
ianmacd 2002-02-27 10:01:21 +00:00
parent 17dcab80ec
commit 00c983ff96

View File

@ -1,6 +1,6 @@
# bash_completion - some programmable completion functions for bash 2.05a
#
# $Id: bash_completion,v 1.159 2002/02/27 10:34:17 ianmacd Exp $
# $Id: bash_completion,v 1.160 2002/02/27 11:01:21 ianmacd Exp $
#
# Copyright (C) Ian Macdonald <ian@caliban.org>
#
@ -1425,7 +1425,7 @@ complete -F _command -o filenames nohup exec nice eval strace
_root_command()
{
PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin _command
PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin _command $1
}
complete -F _root_command -o filenames sudo