File: fix-bash-completion.patch

package info (click to toggle)
ipset 7.24-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,376 kB
  • sloc: ansic: 32,867; sh: 5,855; makefile: 246; awk: 3
file content (23 lines) | stat: -rw-r--r-- 821 bytes parent folder | download | duplicates (3)
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
-