diff options
author | Nicolas Lécureuil <neoclust@mageia.org> | 2017-02-01 10:46:59 +0100 |
---|---|---|
committer | Nicolas Lécureuil <neoclust@mageia.org> | 2017-02-01 10:46:59 +0100 |
commit | 257cc397753fc1b669e7cc8c5435d7f11202847a (patch) | |
tree | c668c3287fbd32425b9b73f4f32298143dbf84f8 /urpmi.bash-completion | |
parent | d4c13a4e23256766cb962342c70ae5beca52a150 (diff) | |
download | urpmi-257cc397753fc1b669e7cc8c5435d7f11202847a.tar urpmi-257cc397753fc1b669e7cc8c5435d7f11202847a.tar.gz urpmi-257cc397753fc1b669e7cc8c5435d7f11202847a.tar.bz2 urpmi-257cc397753fc1b669e7cc8c5435d7f11202847a.tar.xz urpmi-257cc397753fc1b669e7cc8c5435d7f11202847a.zip |
Fix bash completion to not trust aliases (mga#19894) Patch from rapsys
Diffstat (limited to 'urpmi.bash-completion')
-rw-r--r-- | urpmi.bash-completion | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/urpmi.bash-completion b/urpmi.bash-completion index dbf7608a..cc4b598f 100644 --- a/urpmi.bash-completion +++ b/urpmi.bash-completion @@ -8,7 +8,7 @@ common_options="-q --quiet -v --verbose --debug -h --help --urpmi-root --wait-lo _urpmi_get_medias() { medias=( $( urpmq --list-media $1 2>/dev/null \ - | sed -e 's/(/\\(/g' -e 's/)/\\)/g' -e 's/ /\\ /g' ) ) + | \sed -e 's/(/\\(/g' -e 's/)/\\)/g' -e 's/ /\\ /g' ) ) } _urpmi_medias() @@ -24,7 +24,7 @@ _urpmi_aliases() { # return list of available aliases COMPREPLY=( $( awk -F: '{print $1}' /etc/urpmi/parallel.cfg 2>/dev/null \ - | grep "^${cur//\\\\/}" ) ) + | \grep "^${cur//\\\\/}" ) ) } _urpmi_packages() @@ -45,7 +45,7 @@ _urpmi_packages() esac done - COMPREPLY=( $( compgen -W "$(urpmq $options --list | grep ^$cur )" -- ) ) + COMPREPLY=( $( compgen -W "$(urpmq $options --list | \grep ^$cur )" -- ) ) } # urpmi completion |