From aa8c28a50a95ba286ef416d1ddaf68a9dad04fbc Mon Sep 17 00:00:00 2001 From: ianmacd <> Date: Wed, 23 Jan 2002 17:24:46 +0000 Subject: [PATCH] add --rmspec handling to _rpm() --- bash_completion | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bash_completion b/bash_completion index 0623b4bf..2733713d 100644 --- a/bash_completion +++ b/bash_completion @@ -2,7 +2,7 @@ # # # @@ -660,8 +660,8 @@ _rpm() COMPREPLY=( $( compgen -W 'help version initdb \ checksig recompile rebuild resign addsign rebuilddb \ showrc setperms setugids tarbuild eval install \ - upgrade query freshen erase verify querytags rmsource' \ - ${cur_nodash#-} ) ) + upgrade query freshen erase verify querytags rmsource \ + rmspec' ${cur_nodash#-} ) ) dashify return 0 ;; @@ -795,7 +795,7 @@ _rpm() -[bt]*) # complete on list of relevant options COMPREPLY=( $( compgen -W 'short-circuit timecheck clean \ - rmsource test sign buildroot target buildarch buildos \ + rmsource rmspec test sign buildroot target buildarch buildos \ nobuild' ${cur_nodash#-} ) ) dashify # return if $cur is an option @@ -828,7 +828,7 @@ _rpm() add_package_list return 0 ;; - --rmsource) + --rms@(ource|pec)) file_glob spec return 0 ;;