From df82526ec86ec69c3b8e5936da2404cd41e69eaa Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Thu, 27 Apr 2000 12:44:21 +0000 Subject: use $words[1] to call make in _make and throw away stderr and use _call (10977) --- ChangeLog | 3 +++ Completion/User/_make | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8b6fbdfeb..e61d9d185 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2000-04-27 Sven Wischnowsky + * 10977: and Andrej: 10976: Completion/User/_make: use $words[1] + to call make in _make and throw away stderr and use _call + * 10974: Completion/Base/_arguments: ensure $PWD is prepended to cache-names for long options in _arguments diff --git a/Completion/User/_make b/Completion/User/_make index 80164fdbd..09e4e4f89 100644 --- a/Completion/User/_make +++ b/Completion/User/_make @@ -33,7 +33,7 @@ else if [[ -n "$file" ]] && _tags targets; then if [[ -n "$_is_gnu[$words[1]]" ]]; then - tmp=( $(make -nsp --no-print-directory -f "$file" .PHONY | awk '/^[a-zA-Z0-9][^\/\t=]+:/ {print $1}' FS=:) ) + tmp=( $(_call targets "$words[1]" -nsp --no-print-directory -f "$file" .PHONY 2> /dev/null | awk '/^[a-zA-Z0-9][^\/\t=]+:/ {print $1}' FS=:) ) else tmp=( $(awk '/^[a-zA-Z0-9][^\/\t=]+:/ {print $1} -- cgit 1.4.1