Article View: linux.debian.bugs.dist
Article #5749Bug#1029223: lintian: bash-term-in-posix-shell false positive, triggers on "function" in an embedded awk script
From: Benjamin Drung
Date: Mon, 23 Nov 2026 13:10
Date: Mon, 23 Nov 2026 13:10
34 lines
2815 bytes
2815 bytes
On Thu, 19 Jan 2023 18:24:14 -0500 Daniel Kahn Gillmor
<dkg@fifthhorseman.net> wrote:
> Package: lintian
> Version: 2.116.0
> Control: affects -1 + libreswan
>
> Lintian, when reviewing libreswan 4.9-1, reports:
>
> I: libreswan: bash-term-in-posix-shell 'function cool('
[usr/libexec/ipsec/_secretcensor:31]
>
> But in fact the code in question is:
>
> ------
> awk ' function cool(hot, q, cooled, run) {
> # warning: may destroy input line!
> q = "'"'"'" # single quote
> if (hot ~ q)
> ------
>
> That is, the code is not a bashism, but rather an input to awk.
>
> This is a false positive.
The same false positive for the embedded awk script:
I: kbd: bash-term-in-posix-shell 'function msg(' [usr/bin/mk_modmap:372]
--
Benjamin Drung
Debian & Ubuntu Developer
Technical Details
Message-ID:
<O2BXX-dFQi-23@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!srl.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomodReferences:
<FPMw1-1BxQ-1@gated-at.bofh.it> <FPMw1-1BxQ-1@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!srl.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomod From: Benjamin Drung <bdrung@debian.org> Newsgroups: linux.debian.bugs.dist Subject: Bug#1029223: lintian: bash-term-in-posix-shell false positive, triggers on "function" in an embedded awk script Date: Mon, 23 Nov 2026 14:10:01 +0100 Message-ID: <O2BXX-dFQi-23@gated-at.bofh.it> References: <FPMw1-1BxQ-1@gated-at.bofh.it> <FPMw1-1BxQ-1@gated-at.bofh.it> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Mon Nov 23 13:05:07 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.7 Reply-To: Benjamin Drung <bdrung@debian.org>, 1029223@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: lintian-maint@debian.org X-Debian-Pr-Message: followup 1029223 X-Debian-Pr-Package: lintian X-Debian-Pr-Source: lintian Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.56.2-9 MIME-Version: 1.0 X-Debian-User: bdrung X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2004428 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 34 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Mon, 23 Nov 2026 14:03:45 +0100 X-Original-Message-ID: <a4b2bcf42e44209a73ac20744bfdf4093aff32fd.camel@debian.org> X-Original-References: <87sfg65crl.fsf@fifthhorseman.net> <87sfg65crl.fsf@fifthhorseman.net>