From 8bb89092398dcc506df2da23b2ef73892d54d783 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 2 Dec 2018 21:51:28 +1300 Subject: Reorder pattern filters for Makefile lines --- bash/bash_completion.d/make.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bash/bash_completion.d/make.bash') diff --git a/bash/bash_completion.d/make.bash b/bash/bash_completion.d/make.bash index 2527d145..567a2ec0 100644 --- a/bash/bash_completion.d/make.bash +++ b/bash/bash_completion.d/make.bash @@ -23,10 +23,10 @@ _make() { # Match expected format case $line in - # Has no equals sign anywhere - (*=*) continue ;; # First char not a tab ($'\t'*) continue ;; + # Has no equals sign anywhere + (*=*) continue ;; # Has a colon on the line (*:*) ;; # Skip anything else -- cgit v1.2.3 From 0516a03d3e635c7a7066f1ce9649d95210c4a8ec Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 2 Dec 2018 21:51:41 +1300 Subject: Remove unneeded `local` declaration --- bash/bash_completion.d/make.bash | 1 - 1 file changed, 1 deletion(-) (limited to 'bash/bash_completion.d/make.bash') diff --git a/bash/bash_completion.d/make.bash b/bash/bash_completion.d/make.bash index 567a2ec0..a077dc91 100644 --- a/bash/bash_completion.d/make.bash +++ b/bash/bash_completion.d/make.bash @@ -47,7 +47,6 @@ _make() { fi # Examine each target for completion suitability - local target for target in "${targets[@]}" ; do case $target in # Not .PHONY, .POSIX etc -- cgit v1.2.3 From 9a489cf07642ffb1a3c3b5064601a471553ad768 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 2 Dec 2018 22:02:31 +1300 Subject: Remove unneeded local var --- bash/bash_completion.d/make.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bash/bash_completion.d/make.bash') diff --git a/bash/bash_completion.d/make.bash b/bash/bash_completion.d/make.bash index a077dc91..7f8b8125 100644 --- a/bash/bash_completion.d/make.bash +++ b/bash/bash_completion.d/make.bash @@ -34,7 +34,7 @@ _make() { esac # Break the target up with space delimiters - local -a targets + declare -a targets IFS=' ' read -a targets -r \ < <(printf '%s\n' "${line%%:*}") -- cgit v1.2.3