aboutsummaryrefslogtreecommitdiff
path: root/bash/bash_completion.d/bd.bash
diff options
context:
space:
mode:
Diffstat (limited to 'bash/bash_completion.d/bd.bash')
-rw-r--r--bash/bash_completion.d/bd.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bash_completion.d/bd.bash b/bash/bash_completion.d/bd.bash
index 4b3d4a94..86146a4e 100644
--- a/bash/bash_completion.d/bd.bash
+++ b/bash/bash_completion.d/bd.bash
@@ -16,7 +16,7 @@ _bd() {
local dirname
for dirname in "${dirnames[@]}" ; do
[[ $dirname == "${COMP_WORDS[COMP_CWORD]}"* ]] || continue
- COMPREPLY=("${COMPREPLY[@]}" "$(printf %q "$dirname")")
+ COMPREPLY[${#COMPREPLY[@]}]=$(printf %q "$dirname")
done
}
complete -F _bd bd