- Fix broken sudo completion.

- Bump version to 20050121
This commit is contained in:
ianmacd 2005-01-21 21:29:49 +00:00
parent 94cc722836
commit 8510ce97db

View File

@ -1,6 +1,6 @@
# bash_completion - some programmable completion functions for bash 2.05b # bash_completion - some programmable completion functions for bash 2.05b
# #
# $Id: bash_completion,v 1.785 2005/01/20 10:10:00 ianmacd Exp $ # $Id: bash_completion,v 1.786 2005/01/21 22:29:49 ianmacd Exp $
# #
# Copyright (C) Ian Macdonald <ian@caliban.org> # Copyright (C) Ian Macdonald <ian@caliban.org>
# #
@ -22,7 +22,7 @@
# #
# http://www.caliban.org/bash/index.shtml#completion # http://www.caliban.org/bash/index.shtml#completion
# #
# RELEASE: 20050120 # RELEASE: 20050121
[ -n "${DEBUG:-}" ] && set -v || set +v [ -n "${DEBUG:-}" ] && set -v || set +v
@ -3041,6 +3041,9 @@ _command()
# so we can set them before handing off to regular # so we can set them before handing off to regular
# completion routine # completion routine
# set current token number to 1 less than now
COMP_CWORD=$(( $COMP_CWORD - 1 ))
# get function name # get function name
func=${cspec#*-F } func=${cspec#*-F }
func=${func%% *} func=${func%% *}