diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-12-12 11:40:51 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-12-12 11:40:51 +1300 |
commit | 173919ec88dea13bbe1ede2dd5ffa9820c7b4cb5 (patch) | |
tree | a15698e1d45f5e33edab016ecb7c47c5a6e9ec3a /bash/bash_completion.d/keep.bash | |
parent | Make host variable local to function (diff) | |
download | dotfiles-173919ec88dea13bbe1ede2dd5ffa9820c7b4cb5.tar.gz dotfiles-173919ec88dea13bbe1ede2dd5ffa9820c7b4cb5.zip |
Add some missing "local" calls
Diffstat (limited to 'bash/bash_completion.d/keep.bash')
-rw-r--r-- | bash/bash_completion.d/keep.bash | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bash/bash_completion.d/keep.bash b/bash/bash_completion.d/keep.bash index 41423af0..7148ad2b 100644 --- a/bash/bash_completion.d/keep.bash +++ b/bash/bash_completion.d/keep.bash @@ -25,6 +25,7 @@ _keep() { # Complete with appropriate mode case $mode in names) + local word while IFS= read -r word ; do [[ -n $word ]] || continue COMPREPLY[${#COMPREPLY[@]}]=$word @@ -32,6 +33,7 @@ _keep() { -- "${COMP_WORDS[COMP_CWORD]}") ;; kept) + local word while IFS= read -r word ; do [[ -n $word ]] || continue COMPREPLY[${#COMPREPLY[@]}]=$word |