1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
Description: Fix ipset bash completion on bash (>= 4.4.18)
Author: Martin Großhauser <mgroszhauser@gmail.com>
Forwarded: not-needed
Last-Update: 2021-10-28
Index: ipset/utils/ipset_bash_completion/ipset
===================================================================
--- ipset.orig/utils/ipset_bash_completion/ipset
+++ ipset/utils/ipset_bash_completion/ipset
@@ -1005,7 +1005,7 @@ if ((got_bashcompl)); then
if ! declare -F _ipset_known_hosts &>/dev/null; then
eval '_ipset_known_hosts() { '$(declare -f _known_hosts_real | \
grep -v __ltrim_colon_completions | \
- grep -Ev "^_known_hosts_real.*$" | grep -Ev "^(\{|\})")'; }'
+ grep -Ev "^_known_hosts_real.*$" | grep -Ev "^(\{|\})")' }'
fi
fi
@@ -1740,4 +1740,3 @@ if [[ $_DEBUG_NF_COMPLETION ]]; then
fi
}
complete -F _ipset_complete ipset
-
|