diff --git a/bash_completion b/bash_completion index 75217289..273d6a79 100644 --- a/bash_completion +++ b/bash_completion @@ -4997,10 +4997,10 @@ _configure_func() [[ "$cur" != -* ]] && return 0 if [ -n "$COMP_CONFIGURE_HINTS" ]; then - COMPREPLY=( $( $1 --help | awk '/^ --[A-Za-z]/ { print $1; if ($2 ~ /--[A-Za-z]/) print $2 }' | sed -e 's/[[,].*//g' | grep ^$cur ) ) + COMPREPLY=( $( $1 --help 2>&1 | awk '/^ --[A-Za-z]/ { print $1; if ($2 ~ /--[A-Za-z]/) print $2 }' | sed -e 's/[[,].*//g' | grep ^$cur ) ) else - COMPREPLY=( $( $1 --help | awk '/^ --[A-Za-z]/ { print $1; if ($2 ~ /--[A-Za-z]/) print $2 }' | sed -e 's/[[,=].*//g' | grep ^$cur ) ) + COMPREPLY=( $( $1 --help 2>&1 | awk '/^ --[A-Za-z]/ { print $1; if ($2 ~ /--[A-Za-z]/) print $2 }' | sed -e 's/[[,=].*//g' | grep ^$cur ) ) fi } complete -F _configure_func $default configure diff --git a/debian/changelog b/debian/changelog index 81510839..a7dec650 100644 --- a/debian/changelog +++ b/debian/changelog @@ -60,6 +60,8 @@ bash-completion (200811xx) UNRELEASED; urgency=low - fixed typo in the long description * debian/install: - correctly install contrib/* under /etc/bash_completion.d/ + * Consume error messages in configure completion (LP: #223882) + (Mika Fischer) -- David Paleino Fri, 19 Dec 2008 21:59:29 +0100