fix iptables - it no longer worked at all, because $prev wasn't set
This commit is contained in:
parent
1f2e4f47e6
commit
8aa9afba1d
@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# <![CDATA[
|
# <![CDATA[
|
||||||
#
|
#
|
||||||
# $Id: bash_completion,v 1.48 2002/01/06 04:21:04 ianmacd Exp $
|
# $Id: bash_completion,v 1.49 2002/01/06 19:11:12 ianmacd Exp $
|
||||||
#
|
#
|
||||||
# Copyright (C) Ian Macdonald <ian@caliban.org>
|
# Copyright (C) Ian Macdonald <ian@caliban.org>
|
||||||
#
|
#
|
||||||
@ -1213,10 +1213,11 @@ complete -F _tar -o default tar
|
|||||||
have iptables &&
|
have iptables &&
|
||||||
_iptables()
|
_iptables()
|
||||||
{
|
{
|
||||||
local cur
|
local cur prev
|
||||||
|
|
||||||
COMPREPLY=()
|
COMPREPLY=()
|
||||||
cur=${COMP_WORDS[COMP_CWORD]}
|
cur=${COMP_WORDS[COMP_CWORD]}
|
||||||
|
prev=${COMP_WORDS[COMP_CWORD-1]}
|
||||||
|
|
||||||
[ "$prev" = -t ] && COMPREPLY=( $( compgen -W 'nat filter mangle' $cur ) )
|
[ "$prev" = -t ] && COMPREPLY=( $( compgen -W 'nat filter mangle' $cur ) )
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user