diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2006-02-17 08:29:06 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2006-02-17 08:29:06 +0000 |
commit | aaa7887e29b1d3e5b1c83eb8564a59aac7eda4b1 (patch) | |
tree | c4457d1c31aa0d781ab5170bd6e79a3843a5ffde | |
parent | dcc248ba491c1df4f7e72406d6a3f72fff8d36b3 (diff) | |
download | urpmi-aaa7887e29b1d3e5b1c83eb8564a59aac7eda4b1.tar urpmi-aaa7887e29b1d3e5b1c83eb8564a59aac7eda4b1.tar.gz urpmi-aaa7887e29b1d3e5b1c83eb8564a59aac7eda4b1.tar.bz2 urpmi-aaa7887e29b1d3e5b1c83eb8564a59aac7eda4b1.tar.xz urpmi-aaa7887e29b1d3e5b1c83eb8564a59aac7eda4b1.zip |
Unroll bash arrays. Bash 3.1 doesn't like those.
-rw-r--r-- | urpmi.bash-completion | 30 |
1 files changed, 27 insertions, 3 deletions
diff --git a/urpmi.bash-completion b/urpmi.bash-completion index c6a06ce0..2f4760e0 100644 --- a/urpmi.bash-completion +++ b/urpmi.bash-completion @@ -68,7 +68,15 @@ _urpmi() prev=${COMP_WORDS[COMP_CWORD-1]} case "$prev" in - --@(media|excludemedia|sortmedia)) + --media) + _urpmi_medias + return 0 + ;; + --excludemedia) + _urpmi_medias + return 0 + ;; + --sortmedia) _urpmi_medias return 0 ;; @@ -116,7 +124,15 @@ _urpmq() prev=${COMP_WORDS[COMP_CWORD-1]} case "$prev" in - --@(media|excludemedia|sortmedia)) + --media) + _urpmi_medias + return 0 + ;; + --excludemedia) + _urpmi_medias + return 0 + ;; + --sortmedia) _urpmi_medias return 0 ;; @@ -180,7 +196,15 @@ _urpmf() prev=${COMP_WORDS[COMP_CWORD-1]} case "$prev" in - --@(media|excludemedia|sortmedia)) + --media) + _urpmi_medias + return 0 + ;; + --excludemedia) + _urpmi_medias + return 0 + ;; + --sortmedia) _urpmi_medias return 0 ;; |