From 21ba3ddd5bd7249bf3ddcdf0d0cc7693e980a176 Mon Sep 17 00:00:00 2001 From: Guillaume Rousse Date: Fri, 26 Feb 2010 21:07:37 +0000 Subject: use bash-completion wrappers for getting current and previous word, instead of directly accessing COMP_WORDS array (should fix #54845) --- urpmi.bash-completion | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'urpmi.bash-completion') diff --git a/urpmi.bash-completion b/urpmi.bash-completion index 8ce2f1a9..6ddee33c 100644 --- a/urpmi.bash-completion +++ b/urpmi.bash-completion @@ -53,8 +53,8 @@ _urpmi() local cur prev options COMPREPLY=() - cur=${COMP_WORDS[COMP_CWORD]} - prev=${COMP_WORDS[COMP_CWORD-1]} + cur=`_get_cword` + prev=`_get_pword` case "$prev" in --media) -- cgit v1.2.1