diff options
author | Dan McGee <dan@archlinux.org> | 2012-01-19 23:23:57 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-01-19 23:28:04 +0100 |
commit | de56874cc9cdbfa96dd6360818ee6f21da3e1c86 (patch) | |
tree | 7fee5e473388f71522068cd49c7b156fea0e71b4 /contrib/bash_completion.in | |
parent | 1eb40c83287b07ac7428ad2d58504f386fad98f1 (diff) | |
download | pacman-de56874cc9cdbfa96dd6360818ee6f21da3e1c86.tar.gz pacman-de56874cc9cdbfa96dd6360818ee6f21da3e1c86.tar.xz |
contrib/bash_completion: don't print stderr messages
If you are a crazy developer like me and have bogus options in your
pacman.conf file, the tab completion gets messed up by the output on
stderr. Suppress it.
Fix the same basic issue in zsh_completion, thanks to the work by
Florian Pritz <bluewind@xinu.at>.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'contrib/bash_completion.in')
-rw-r--r-- | contrib/bash_completion.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/bash_completion.in b/contrib/bash_completion.in index d9e0c785..8983c92b 100644 --- a/contrib/bash_completion.in +++ b/contrib/bash_completion.in @@ -59,9 +59,9 @@ _makepkg() { _pacman_pkg() { _arch_compgen "$( if [[ $2 ]]; then - \pacman -$1 | \cut -d' ' -f1 | \sort -u + \pacman -$1 2>/dev/null | \cut -d' ' -f1 | \sort -u else - \pacman -$1 + \pacman -$1 2>/dev/null fi )" } |