[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-13-gd852c18
Ville Skyttä
ville.skytta at iki.fi
Sun Feb 13 17:01:28 UTC 2011
The following commit has been merged in the master branch:
commit d852c18d41c7e000c98a335013c7222566f5dca3
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Sun Feb 13 18:54:54 2011 +0200
Simplify rpmbuild --buildpolicy completion.
diff --git a/completions/rpm b/completions/rpm
index 098cdc9..0f68d1f 100644
--- a/completions/rpm
+++ b/completions/rpm
@@ -262,8 +262,8 @@ _rpmbuild()
--buildpolicy)
local cfgdir=$( $rpm --eval '%{_rpmconfigdir}' 2>/dev/null )
if [[ $cfgdir ]]; then
- COMPREPLY=( $( compgen -W "$( command ls $cfgdir/brp-* \
- 2>/dev/null | sed -ne "s|^$cfgdir/brp-||p" )" -- "$cur" ) )
+ COMPREPLY=( $( compgen -W "$( command ls $cfgdir 2>/dev/null \
+ | sed -ne 's/^brp-//p' )" -- "$cur" ) )
fi
;;
--define|-D|--with|--without)
--
bash-completion
More information about the Bash-completion-commits
mailing list