- clean up superluous returns in _ipsec()

This commit is contained in:
ianmacd 2002-02-26 23:35:39 +00:00
parent 844c7bb6b2
commit d29b19a324

View File

@ -1,6 +1,6 @@
# bash_completion - some programmable completion functions for bash 2.05a # bash_completion - some programmable completion functions for bash 2.05a
# #
# $Id: bash_completion,v 1.150 2002/02/27 00:29:54 ianmacd Exp $ # $Id: bash_completion,v 1.151 2002/02/27 00:35:39 ianmacd Exp $
# #
# Copyright (C) Ian Macdonald <ian@caliban.org> # Copyright (C) Ian Macdonald <ian@caliban.org>
# #
@ -516,7 +516,8 @@ _ifconfig()
;; ;;
esac esac
COMPREPLY=( $( /sbin/ifconfig -a | sed -ne 's/^\('$cur'[^ ]*\).*$/\1/p' )) COMPREPLY=( $( /sbin/ifconfig -a | \
sed -ne 's/^\('$cur'[^ ]*\).*$/\1/p' ))
} }
[ $OS = Linux ] && complete -F _ifconfig ifconfig [ $OS = Linux ] && complete -F _ifconfig ifconfig
@ -569,24 +570,19 @@ _ipsec()
--replace --down --route --unroute \ --replace --down --route --unroute \
--ready --status --rereadsecrets' \ --ready --status --rereadsecrets' \
$cur ) ) $cur ) )
return 0
;; ;;
manual) manual)
COMPREPLY=( $( compgen -W '--up --down --route --unroute \ COMPREPLY=( $( compgen -W '--up --down --route --unroute \
--union' $cur ) ) --union' $cur ) )
return 0
;; ;;
ranbits) ranbits)
COMPREPLY=( $( compgen -W '--quick --continuous --bytes' $cur ) ) COMPREPLY=( $( compgen -W '--quick --continuous --bytes' $cur ) )
return 0
;; ;;
setup) setup)
COMPREPLY=( $( compgen -W '--start --stop --restart' $cur ) ) COMPREPLY=( $( compgen -W '--start --stop --restart' $cur ) )
return 0
;; ;;
*) *)
return 0
;; ;;
esac esac