Skip to content

Commit ab014c9

Browse files
authored
fix(_known_hosts_real): protect against non-default $IFS (scop#519)
Closes scop#515
1 parent 2160457 commit ab014c9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bash_completion

+2-1
Original file line numberDiff line numberDiff line change
@@ -1641,7 +1641,7 @@ _included_ssh_config_files()
16411641
local configfile i f
16421642
configfile=$1
16431643

1644-
local reset=$(shopt -po noglob)
1644+
local IFS=$' \t\n' reset=$(shopt -po noglob)
16451645
set -o noglob
16461646
local included=($(command sed -ne 's/^[[:blank:]]*[Ii][Nn][Cc][Ll][Uu][Dd][Ee][[:blank:]]\(.*\)$/\1/p' "${configfile}"))
16471647
$reset
@@ -1870,6 +1870,7 @@ _known_hosts_real()
18701870
$(compgen -A hostname -P "$prefix" -S "$suffix" -- "$cur"))
18711871
fi
18721872

1873+
IFS=$' \t\n'
18731874
$reset
18741875

18751876
if [[ -v ipv4 ]]; then

0 commit comments

Comments
 (0)