diff options
author | Guillaume Rousse <guillomovitch@mandriva.org> | 2004-10-27 20:02:01 +0000 |
---|---|---|
committer | Guillaume Rousse <guillomovitch@mandriva.org> | 2004-10-27 20:02:01 +0000 |
commit | 9b1310fcbdb7ceea7ccd23ec98f5ccc16714bc9a (patch) | |
tree | 35e831917ca2bee4b4cf99c08241244e0328a376 | |
parent | e223ba57bfb0cf09faf1474bd46341394d9873a5 (diff) | |
download | urpmi-9b1310fcbdb7ceea7ccd23ec98f5ccc16714bc9a.tar urpmi-9b1310fcbdb7ceea7ccd23ec98f5ccc16714bc9a.tar.gz urpmi-9b1310fcbdb7ceea7ccd23ec98f5ccc16714bc9a.tar.bz2 urpmi-9b1310fcbdb7ceea7ccd23ec98f5ccc16714bc9a.tar.xz urpmi-9b1310fcbdb7ceea7ccd23ec98f5ccc16714bc9a.zip |
escape spaces and parenthesis in medias names
-rw-r--r-- | urpmi.bash-completion | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/urpmi.bash-completion b/urpmi.bash-completion index 7978bc33..fb5dd51a 100644 --- a/urpmi.bash-completion +++ b/urpmi.bash-completion @@ -1,11 +1,11 @@ # bash completion for urpmi and friends -# Copyright (c) 2002-2003 Guillaume Rousse <guillomovitch@linux-mandrake.com> +# Copyright (c) 2002-2004 Guillaume Rousse <guillomovitch@linux-mandrake.com> # $Id$ # utility functions _urpmi_get_medias() { - medias=( $( sed -ne 's/^\(.\+\) \+[^ ]\+ \+{/\1/p' /etc/urpmi/urpmi.cfg 2>/dev/null ) ) + medias=( $( sed -ne 's/^\(.\+\) \+[^ ]\+ \+{/\1/p' /etc/urpmi/urpmi.cfg 2>/dev/null | sed -e 's/(/\\(/g' -e 's/)/\\)/g' -e 's/ /\\ /g' ) ) } _urpmi_medias() |