summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Rousse <guillomovitch@mandriva.org>2010-02-26 21:07:37 +0000
committerGuillaume Rousse <guillomovitch@mandriva.org>2010-02-26 21:07:37 +0000
commit21ba3ddd5bd7249bf3ddcdf0d0cc7693e980a176 (patch)
treedfaae00354e047bc3483d4c87e44b7a23e5a139e
parent51aaf2e1d28125ce85207526ca24cf95414b6430 (diff)
downloadurpmi-21ba3ddd5bd7249bf3ddcdf0d0cc7693e980a176.tar
urpmi-21ba3ddd5bd7249bf3ddcdf0d0cc7693e980a176.tar.gz
urpmi-21ba3ddd5bd7249bf3ddcdf0d0cc7693e980a176.tar.bz2
urpmi-21ba3ddd5bd7249bf3ddcdf0d0cc7693e980a176.tar.xz
urpmi-21ba3ddd5bd7249bf3ddcdf0d0cc7693e980a176.zip
use bash-completion wrappers for getting current and previous word, instead of directly accessing COMP_WORDS array (should fix #54845)
-rw-r--r--urpmi.bash-completion4
1 files changed, 2 insertions, 2 deletions
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)