$prev not needed in _scp

This commit is contained in:
ianmacd 2001-11-20 20:35:19 +00:00
parent fffa610ef8
commit a5c9861856

View File

@ -2,7 +2,7 @@
# #
# <![CDATA[ # <![CDATA[
# #
# $Id: bash_completion,v 1.27 2001/11/20 05:15:48 ianmacd Exp $ # $Id: bash_completion,v 1.28 2001/11/20 21:35:19 ianmacd Exp $
# #
# Copyright (C) Ian Macdonald <ian@caliban.org> # Copyright (C) Ian Macdonald <ian@caliban.org>
# #
@ -1044,11 +1044,10 @@ _ssh()
have scp && have scp &&
_scp() _scp()
{ {
local cur prev COMPREPLY_SAVE=() local cur COMPREPLY_SAVE=()
COMPREPLY=() COMPREPLY=()
cur=${COMP_WORDS[COMP_CWORD]} cur=${COMP_WORDS[COMP_CWORD]}
prev=${COMP_WORDS[COMP_CWORD-1]}
COMPREPLY_SAVE=( $( compgen -f $cur ) ) COMPREPLY_SAVE=( $( compgen -f $cur ) )
_known_hosts _known_hosts