🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #6658

Bug#1155730: ipset: fix-bash-completion.patch breaks _ipset_known_hosts with bash-completion 2.16

#6658
From: Thomas Deutschmann
Date: Sun, 29 Nov 2026 07:40
31 lines
2801 bytes
Package: ipset
Version: 7.22-1+b1
Severity: normal

On Debian 13.8 (trixie, amd64), ipset's completion function raises
"syntax error: unexpected end of file" when it tries to define
_ipset_known_hosts. This occurs with bash 5.2.37-2+b10 and
bash-completion 1:2.16.0-7.

To reproduce independently of the syntax error at line 363, start
bash --noprofile --norc and run these two commands. The sed range
selects the complete eval statement from the unmodified trixie file:

    source /usr/share/bash-completion/bash_completion
    source <(sed -n '1004,1006p' /usr/share/bash-completion/completions/ipset)

The second command reports a syntax error and exits with status 2.
On this system, _known_hosts_real exists. Its body is a single call
to _comp_compgen_known_hosts "$@".

Debian's fix-bash-completion.patch removes the semicolon before the
closing brace of the generated function. With this wrapper, eval gets
no command terminator before the brace. I tested the same statement
with just the upstream semicolon restored: it defines
_ipset_known_hosts successfully.

Could you update the Debian patch for this version of bash-completion?
A related Ubuntu report is https://bugs.launchpad.net/bugs/2173038.

Thanks,
Thomas Deutschmann
Technical Details
Message-ID: <O4HFU-ePJ8-3@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod
From: Thomas Deutschmann <whissi@whissi.de>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1155730: ipset: fix-bash-completion.patch breaks _ipset_known_hosts with bash-completion 2.16
Date: Sun, 29 Nov 2026 08:40:02 +0100
Message-ID: <O4HFU-ePJ8-3@gated-at.bofh.it>
X-Original-To: submit@bugs.debian.org
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Sun Nov 29 07:33:08 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.651
Reply-To: Thomas Deutschmann <whissi@whissi.de>, 1155730@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: pkg-netfilter-team@lists.alioth.debian.org
X-Debian-Pr-Message: report 1155730
X-Debian-Pr-Package: ipset
X-Debian-Pr-Source: ipset
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Mailer: reportbug 13.2.0
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2005769
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 31
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Sun, 29 Nov 2026 02:31:42 -0500
X-Original-Message-ID: <179593750226.1754.13600704745635148700.reportbug@vm-debian13-x64.intern.deutschmann.biz>