From 33a46236484396a1a3c67a6afc5533203a636ce3 Mon Sep 17 00:00:00 2001 From: ianmacd <> Date: Mon, 3 Nov 2003 23:27:29 +0000 Subject: [PATCH] - remove bogus targets from make completion --- bash_completion | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/bash_completion b/bash_completion index c5e50a2d..2005363e 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.648 2003/11/03 23:33:01 ianmacd Exp $ +# $Id: bash_completion,v 1.649 2003/11/04 00:27:29 ianmacd Exp $ # # Copyright (C) Ian Macdonald # @@ -2409,9 +2409,8 @@ _make() [ ! -f $makef ] && return 0 - COMPREPLY=( $( awk -F':' '/^[^\t ]*:/ {print $1}' $makef \ - 2>/dev/null | grep -v "^[.%#]" | grep "^$cur" )) - + COMPREPLY=( $( awk -F':' '/^[a-zA-Z0-9][^\/\t=]+:/ {print $1}'\ + $makef 2>/dev/null | grep "^$cur" )) fi } [ -n "${have:-}" ] && complete -F _make $default make gmake pmake