summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@mandriva.com>2009-11-18 10:12:15 +0000
committerChristophe Fergeau <cfergeau@mandriva.com>2009-11-18 10:12:15 +0000
commitae46f6a21b8676b81c78290f182551f257c285a7 (patch)
tree9db9ea0cff5a5c282b1dccc2dc1e68a89bb311c2
parent703af98cc4c470a49514326251efcb86ad28f6b3 (diff)
downloadurpmi-ae46f6a21b8676b81c78290f182551f257c285a7.tar
urpmi-ae46f6a21b8676b81c78290f182551f257c285a7.tar.gz
urpmi-ae46f6a21b8676b81c78290f182551f257c285a7.tar.bz2
urpmi-ae46f6a21b8676b81c78290f182551f257c285a7.tar.xz
urpmi-ae46f6a21b8676b81c78290f182551f257c285a7.zip
fix bash completion script (#54946)
sh urpmi.bash_completions was reporting errors when trying to run it. Patch by Pedro MC
-rw-r--r--urpmi.bash-completion4
1 files changed, 2 insertions, 2 deletions
diff --git a/urpmi.bash-completion b/urpmi.bash-completion
index 5353dfd9..3ca089bc 100644
--- a/urpmi.bash-completion
+++ b/urpmi.bash-completion
@@ -33,7 +33,7 @@ _urpmi_packages()
# find media selection options
for (( i=1; i < COMP_CWORD; i++ )); do
case "${COMP_WORDS[i]}" in
- --@(excludemedia|media))
+ --@\(excludemedia|media\))
options="$options ${COMP_WORDS[i]} ${COMP_WORDS[i+1]}"
i=$(($i+1))
;;
@@ -119,7 +119,7 @@ _urpmi()
if [[ "$cur" != */* ]]; then
_urpmi_packages
fi
- _filedir @(rpm|spec)
+ _filedir @\(rpm|spec\)
fi
fi
}