diff --git a/bash_completion b/bash_completion index 02ae5dbb..c26718e2 100644 --- a/bash_completion +++ b/bash_completion @@ -1,6 +1,6 @@ # bash_completion - some programmable completion functions for bash 2.05b # -# $Id: bash_completion,v 1.423 2002/10/05 08:03:21 ianmacd Exp $ +# $Id: bash_completion,v 1.424 2002/10/05 08:08:53 ianmacd Exp $ # # Copyright (C) Ian Macdonald # @@ -1441,7 +1441,7 @@ _apt_get() if [ -n "$special" ]; then case $special in @(install|source|build-dep)) - COMPREPLY=( $( apt-cache pkgnames $cur ) ) + COMPREPLY=( $( apt-cache pkgnames $cur 2> /dev/null ) ) return 0 ;; remove) @@ -1518,7 +1518,7 @@ _apt_cache() return 0 ;; show?(pkg)|depends|dotty|policy) - COMPREPLY=( $( apt-cache pkgnames $cur ) ) + COMPREPLY=( $( apt-cache pkgnames $cur 2>/dev/null) ) return 0 ;; esac @@ -1584,7 +1584,7 @@ _aptitude() if [[ -n "$special" ]]; then case $special in @(install|hold|markauto|unmarkauto|dist-upgrade|download)) - COMPREPLY=( $( apt-cache pkgnames $cur ) ) + COMPREPLY=( $( apt-cache pkgnames $cur 2> /dev/null ) ) return 0 ;; @(purge|remove)) @@ -1642,7 +1642,7 @@ _apt_build() if [ -n "$special" ]; then case $special in @(install|source|info)) - COMPREPLY=( $( apt-cache pkgnames $cur ) ) + COMPREPLY=( $( apt-cache pkgnames $cur 2> /dev/null ) ) return 0 ;; remove) @@ -2834,7 +2834,7 @@ _dpkg() return 0 ;; -@(s|p|l|-@(status|print-avail|list))) - COMPREPLY=( $( apt-cache pkgnames $cur ) ) + COMPREPLY=( $( apt-cache pkgnames $cur 2>/dev/null ) ) return 0 ;; -@(S|-search))