diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-12-02 23:12:15 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-12-02 23:12:15 +1300 |
commit | 456ccb394342528e1d3a8e17277a51039c9c2549 (patch) | |
tree | 7d85c2282553762caa50c6d675c97709d51d2c2b /bash/bash_completion.d/make.bash | |
parent | Merge branch 'release/v2.7.0' (diff) | |
parent | Bump VERSION (diff) | |
download | dotfiles-2.8.0.tar.gz (sig) dotfiles-2.8.0.zip |
Merge branch 'release/v2.8.0'v2.8.0
* release/v2.8.0:
Bump VERSION
Use native filename quoting for td(1df) complete
Make bd() and sd() match quoted and unquoted words
Remove unneeded braces
Use variable for node count, not expansion
Use simple loop rather than glob tricks in keep
Move error increment to outside of if block
Add missing source of helper func to man complete
Remove unneeded local var
Trim some trailing whitespace
Correct manpath(1) command in man completion
Adjust quoting and termination for man completion
Update glob settings for manual page completion
Make `sec` a local var in man page completion
Remove unneeded `local` declaration
Reorder pattern filters for Makefile lines
Add some comments to keep() completion
Correct find(1) completion to subshell exit
Correct completion quoting for eds(1df)
Diffstat (limited to 'bash/bash_completion.d/make.bash')
-rw-r--r-- | bash/bash_completion.d/make.bash | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/bash/bash_completion.d/make.bash b/bash/bash_completion.d/make.bash index 2527d145..7f8b8125 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 @@ -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%%:*}") @@ -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 |