Skip to content

Commit 5edb278

Browse files
committed
fix(ebtables,iptables): work around localvar_inherit
1 parent 696c4a5 commit 5edb278

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

completions/ebtables

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ _comp_cmd_ebtables()
55
local cur prev words cword was_split comp_args
66
_comp_initialize -s -- "$@" || return
77

8-
local table chain='s/^Bridge chain: \([^ ,]\{1,\}\).*$/\1/p' \
8+
local table="" chain='s/^Bridge chain: \([^ ,]\{1,\}\).*$/\1/p' \
99
targets='ACCEPT DROP CONTINUE RETURN'
1010

1111
[[ ${words[*]} =~ [[:space:]]-(t|-table=?)[[:space:]]*([^[:space:]]+) ]] &&

completions/iptables

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ _comp_cmd_iptables()
55
local cur prev words cword was_split comp_args
66
_comp_initialize -s -- "$@" || return
77

8-
local table chain='s/^Chain \([^ ]\{1,\}\).*$/\1/p'
8+
local table="" chain='s/^Chain \([^ ]\{1,\}\).*$/\1/p'
99

1010
[[ ${words[*]} =~ [[:space:]]-(t|-table=?)[[:space:]]*([^[:space:]]+) ]] &&
1111
table="-t ${BASH_REMATCH[2]}"

0 commit comments

Comments
 (0)