From bcaf3b409186ba4c597219fd1eeed367e9f2938c Mon Sep 17 00:00:00 2001 From: David Paleino Date: Fri, 26 Sep 2008 21:39:30 +0200 Subject: [PATCH] * Fixed bugs with gdb completion: - when a non-existing directory is in $PATH (Closes: #499780) --- bash_completion | 2 +- debian/changelog | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/bash_completion b/bash_completion index e1fe9f7b..e9ac7cb6 100644 --- a/bash_completion +++ b/bash_completion @@ -4097,7 +4097,7 @@ _gdb() local path_array=( $(echo "$PATH" | sed 's/::\+/:/g;s/^:\|:$//g') ) IFS=$'\n' COMPREPLY=( $( compgen -d -W '$(find "${path_array[@]}" . \ - -mindepth 1 -maxdepth 1 -not -type d -executable -printf "%f\\n")' \ + -mindepth 1 -maxdepth 1 -not -type d -executable -printf "%f\\n" 2>/dev/null)' \ -- "$cur" ) ) fi elif [ $COMP_CWORD -eq 2 ]; then diff --git a/debian/changelog b/debian/changelog index c920e781..1db9e09e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -15,15 +15,17 @@ bash-completion (200809xx) UNRELEASED; urgency=low * Bogus completion when mounting subdirs fixed (Closes: #322238) * Fix `apt-cache showsrc` completing only on source package names (Closes: #361535) - * Fix bug with gdb (and find) when an empty directory is in $PATH - (thanks to Morita Sho) (Closes: #497597) + * Fixed bugs with gdb completion: + - when an empty directory is in $PATH (thanks to Morita Sho) + (Closes: #497597) + - when a non-existing directory is in $PATH (Closes: #499780) * Fix missing completion for "-n" and "-e" (we were using echo, now using printf) (thanks to Morita Sho) (Closes: #498105) * Added gksudo, gksu, kdesudo completion * Added apache2ctl completion * debian/links fixed (Closes: #494292) - -- David Paleino Sun, 14 Sep 2008 12:30:20 +0200 + -- David Paleino Fri, 26 Sep 2008 21:36:35 +0200 bash-completion (20080705) unstable; urgency=low