From b1513938c3e35e1acede054e4659f6827b6008e7 Mon Sep 17 00:00:00 2001 From: ianmacd <> Date: Sun, 29 Oct 2000 22:17:19 +0000 Subject: [PATCH] fixed RPM completion. Not all RPMs were found when completing -e, etc. --- bash_completion | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bash_completion b/bash_completion index bb64d239..0744a56f 100644 --- a/bash_completion +++ b/bash_completion @@ -2,7 +2,7 @@ # # # @@ -632,7 +632,7 @@ _rpm() [[ "$cur" == -* ]] && return 0 # complete on basename of installed RPMs COMPREPLY=( $( rpm -qa | \ - sed -ne 's/^\('$cur'.*\)-[0-9a-zA-Z._]\+-[0-9.]\+$/\1/p' ) ) + sed -ne 's/^\('$cur'.*\)-[0-9a-zA-Z._]\+-[0-9a-z.]\+$/\1/p' ) ) return 0 ;; -qa*) @@ -655,7 +655,7 @@ _rpm() [[ "$cur" == -* ]] && return 0 # add a list of RPMS to possible completions COMPREPLY=( ${COMPREPLY[@]} $( rpm -qa | \ - sed -ne 's/^\('$cur'.*\)-[0-9a-zA-Z._]\+-[0-9.]\+$/\1/p' ) ) + sed -ne 's/^\('$cur'.*\)-[0-9a-zA-Z._]\+-[0-9a-z.]\+$/\1/p' ) ) return 0 ;; -[Vy]*) @@ -667,7 +667,7 @@ _rpm() [[ "$cur" == -* ]] && return 0 # add a list of RPMS to possible completions COMPREPLY=( ${COMPREPLY[@]} $( rpm -qa | \ - sed -ne 's/^\('$cur'.*\)-[0-9a-zA-Z._]\+-[0-9.]\+$/\1/p' ) ) + sed -ne 's/^\('$cur'.*\)-[0-9a-zA-Z._]\+-[0-9a-z.]\+$/\1/p' ) ) return 0 ;; -b*) @@ -707,7 +707,7 @@ _rpm() --set@(perms|gids)) # complete on installed RPMs COMPREPLY=( ${COMPREPLY[@]} $( rpm -qa | \ - sed -ne 's/^\('$cur'.*\)-[0-9a-zA-Z._]\+-[0-9.]\+$/\1/p' ) ) + sed -ne 's/^\('$cur'.*\)-[0-9a-zA-Z._]\+-[0-9a-z.]\+$/\1/p' ) ) return 0 ;; esac