🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Bug#1155004: lintian: Please use shellcheck to check for bashisms

#5755
From: Benjamin Drung
Date: Mon, 23 Nov 2026 13:40
25 lines
2352 bytes
Package: lintian
Version: 2.144.0
Severity: wishlist
X-Debbugs-Cc: bdrung@debian.org

Dear Maintainer,

I have seen several false positives for the bashisms checks, for
example:

* bash-term-in-posix-shell false positive, triggers on "function" in an
  embedded awk script (bug #1029223)
* bash-term-in-posix-shell false positives for dracut (#1155003)

There is a tool that parses shell scripts and is good at detecting
script problems including bashisms: shellcheck

Please use shellcheck for bash-term-in-posix-shell and chown-with-dot.
It can produce a JSON output that lintian can use. shellcheck can take
--rcfile to specify a config. In this config, lintian could turn on the
shellcheck checks about bashisms.

-- 
Benjamin Drung
Debian & Ubuntu Developer
Technical Details
Message-ID: <O2CqZ-dG1h-7@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!news.nntp4.net!news.samoylyk.net!gothmog.csi.it!news.servidellagleba.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!news.nntp4.net!news.samoylyk.net!gothmog.csi.it!news.servidellagleba.it!bofh.it!news.nic.it!robomod
From: Benjamin Drung <bdrung@debian.org>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1155004: lintian: Please use shellcheck to check for bashisms
Date: Mon, 23 Nov 2026 14:40:01 +0100
Message-ID: <O2CqZ-dG1h-7@gated-at.bofh.it>
X-Original-To: Debian Bug Tracking System <submit@bugs.debian.org>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Mon Nov 23 13:33:09 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.9
Reply-To: Benjamin Drung <bdrung@debian.org>, 1155004@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: bdrung@debian.org, lintian-maint@debian.org
X-Debian-Pr-Message: report 1155004
X-Debian-Pr-Package: lintian
X-Debian-Pr-Source: lintian
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Mailer: reportbug 13.2.0+ubuntu1
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2004438
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 25
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Mon, 23 Nov 2026 14:30:40 +0100
X-Original-Message-ID: <179544064001.1956470.10220455099642143787.reportbug@deep-thought>