#1148125 zsh: iptables completion is partially broken

Package:
zsh
Source:
zsh
Description:
shell with lots of features
Submitter:
Eugene Berdnikov
Date:
2026-09-17 10:33:02 UTC
Severity:
normal
#1148125#5
Date:
2026-09-17 10:24:01 UTC
From:
To:
Package: zsh
Version: 5.9.2-1+b1

 Hello. After zsh upgrade from 5.9-8+b40 to 5.9.2-1+b1 completion for
 "iptables" command becomes partially broken: is does not complete
 chain names. For example, "iptables -nvL I<TAB>" in older versions
 does complete I to INPUT, F to FORWARD and so on, but in new version
 does not. Typing "iptables -nvL I<CTRL-X>h" I got --

 case 5.9-8+b40 (normal):

tags in context :completion::complete:iptables::
    option-L-1 options  (_arguments _iptables)
tags in context :completion::complete:iptables:option-L-1:
    chains  (_iptables)

 case 5.9.2-1+b1 (broken):

tags in context :completion::complete:iptables::
    option-L-1 option-L-2 options  (_arguments _iptables)

 If directory tree /usr/share/zsh of 5.9.2-1+b1 is completely substituted
 by that one from 5.9-8+b40 package, completion of chain names works.

 If only single file /usr/share/zsh/functions/Completion/Linux/_iptables
 is substituted by version from 5.9-8+b40, completion remains broken.