aboutsummaryrefslogtreecommitdiff
path: root/bash/bash_completion.d/find.bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-12-01 02:21:27 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-12-01 02:21:27 +1300
commit1a5ad4bc42f558b26aacf56e7604a7740c454f2b (patch)
tree851a3d4b06aef90994a58da3bcc9a80de9bd5b23 /bash/bash_completion.d/find.bash
parentRemove null-result guard from completion gens (diff)
downloaddotfiles-1a5ad4bc42f558b26aacf56e7604a7740c454f2b.tar.gz
dotfiles-1a5ad4bc42f558b26aacf56e7604a7740c454f2b.zip
Use array+=() syntax in two Bash completion files
Since these only load with Bash >=4.0, we may as well use the nicer method of adding to arrays.
Diffstat (limited to 'bash/bash_completion.d/find.bash')
-rw-r--r--bash/bash_completion.d/find.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bash_completion.d/find.bash b/bash/bash_completion.d/find.bash
index 007a83bd..85cadfaf 100644
--- a/bash/bash_completion.d/find.bash
+++ b/bash/bash_completion.d/find.bash
@@ -30,7 +30,7 @@ _find() {
local item
while read -r item ; do
[[ -n $item ]] || continue
- COMPREPLY[${#COMPREPLY[@]}]=$item
+ COMPREPLY+=("$item")
done < <(
# If the word being completed starts with a dash, just complete it as