summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@mandriva.com>2010-05-11 13:18:03 +0000
committerChristophe Fergeau <cfergeau@mandriva.com>2010-05-11 13:18:03 +0000
commit975df4288794b16f890f7139a4802b84ae27ccfb (patch)
tree5c444d0f336e8bb7fdbe7ed8aa9e620e21076a23
parent5e14f1fa32349bf3ebd0b1de1d593c8e1fce0951 (diff)
downloadurpmi-975df4288794b16f890f7139a4802b84ae27ccfb.tar
urpmi-975df4288794b16f890f7139a4802b84ae27ccfb.tar.gz
urpmi-975df4288794b16f890f7139a4802b84ae27ccfb.tar.bz2
urpmi-975df4288794b16f890f7139a4802b84ae27ccfb.tar.xz
urpmi-975df4288794b16f890f7139a4802b84ae27ccfb.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)