call _expand() from a couple more places in _rpm()

This commit is contained in:
ianmacd 2002-01-29 17:31:22 +00:00
parent 71807594e7
commit 1eec8baf69

View File

@ -2,7 +2,7 @@
#
# <![CDATA[
#
# $Id: bash_completion,v 1.71 2002/01/24 21:20:31 ianmacd Exp $
# $Id: bash_completion,v 1.72 2002/01/29 18:31:22 ianmacd Exp $
#
# Copyright (C) Ian Macdonald <ian@caliban.org>
#
@ -804,17 +804,20 @@ _rpm()
# complete on .spec files
file_glob spec
else
_expand || return 0
# complete on .tar files
COMPREPLY=( $( compgen -G $cur\*.+(tgz|tar.+(gz|bz2)) ) )
fi
return 0
;;
--re@(build|compile))
_expand || return 0
# complete on source RPMs
COMPREPLY=( $( compgen -G $cur\*.src.rpm ) )
return 0
;;
--tarbuild)
_expand || return 0
# complete on tarred sources
COMPREPLY=( $( compgen -G $cur\*.+(tgz|tar.+(gz|bz2)) ) )
return 0