call _expand() from a couple more places in _rpm()
This commit is contained in:
parent
71807594e7
commit
1eec8baf69
@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# <![CDATA[
|
# <![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>
|
# Copyright (C) Ian Macdonald <ian@caliban.org>
|
||||||
#
|
#
|
||||||
@ -804,17 +804,20 @@ _rpm()
|
|||||||
# complete on .spec files
|
# complete on .spec files
|
||||||
file_glob spec
|
file_glob spec
|
||||||
else
|
else
|
||||||
|
_expand || return 0
|
||||||
# complete on .tar files
|
# complete on .tar files
|
||||||
COMPREPLY=( $( compgen -G $cur\*.+(tgz|tar.+(gz|bz2)) ) )
|
COMPREPLY=( $( compgen -G $cur\*.+(tgz|tar.+(gz|bz2)) ) )
|
||||||
fi
|
fi
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
--re@(build|compile))
|
--re@(build|compile))
|
||||||
|
_expand || return 0
|
||||||
# complete on source RPMs
|
# complete on source RPMs
|
||||||
COMPREPLY=( $( compgen -G $cur\*.src.rpm ) )
|
COMPREPLY=( $( compgen -G $cur\*.src.rpm ) )
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
--tarbuild)
|
--tarbuild)
|
||||||
|
_expand || return 0
|
||||||
# complete on tarred sources
|
# complete on tarred sources
|
||||||
COMPREPLY=( $( compgen -G $cur\*.+(tgz|tar.+(gz|bz2)) ) )
|
COMPREPLY=( $( compgen -G $cur\*.+(tgz|tar.+(gz|bz2)) ) )
|
||||||
return 0
|
return 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user