From 532acb0ecf85ac3af220411beb4e3d74860c80fe Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 12 Dec 2016 10:43:44 +1300 Subject: Make host variable local to function --- bash/bash_completion.d/_ssh_config_hosts.bash | 1 + 1 file changed, 1 insertion(+) (limited to 'bash') diff --git a/bash/bash_completion.d/_ssh_config_hosts.bash b/bash/bash_completion.d/_ssh_config_hosts.bash index 02e9af06..8f45c412 100644 --- a/bash/bash_completion.d/_ssh_config_hosts.bash +++ b/bash/bash_completion.d/_ssh_config_hosts.bash @@ -14,6 +14,7 @@ _ssh_config_hosts() { done # Generate completion reply + local host for host in "${hosts[@]}" ; do [[ $host == "${COMP_WORDS[COMP_CWORD]}"* ]] || continue COMPREPLY[${#COMPREPLY[@]}]=$host -- cgit v1.2.3