Lintian tag: shell-script-fails-syntax-check

Type: error

Description (from lintian-explain-tags)

Running this shell script with the shell's -n option set fails, which
means that the script has syntax errors. The most common cause of this
problem is a script expecting /bin/sh to be bash checked on a system using
dash as /bin/sh.

Run e.g. sh -n yourscript to see the errors yourself.

Note this can have false-positives, for an example with bash scripts using
"extglob".

Visibility: error
Show-Always: no
Check: script/syntax

Affected packages

source version binary level tag count information
autoproject 0.20-16 autoproject/0.20-16 overridden shell-script-fails-syntax-check 1 [usr/share/autoproject/cli/sh/none/program.in]
calamares-settings-debian 14.0.2-1 calamares-settings-debian/14.0.2-1 error shell-script-fails-syntax-check 1 [usr/bin/add-calamares-desktop-icon]
cmake 4.3.4-1 cmake/4.3.4-1 overridden shell-script-fails-syntax-check 8 [usr/share/cmake-4.3/Modules/Platform/AIX/ExportImportList]
cmake 4.4.0-1 cmake/4.4.0-1 overridden shell-script-fails-syntax-check 7 [usr/share/cmake-4.4/Modules/Platform/AIX/ExportImportList]
crowdsec 1.4.6-10.1 golang-github-crowdsecurity-crowdsec-dev/1.4.6-10.1 overridden shell-script-fails-syntax-check 1 [usr/share/gocode/src/github.com/crowdsecurity/crowdsec/docker/docker_start.sh]
debootstick 2.9 debootstick/2.9 overridden shell-script-fails-syntax-check 1 [usr/sbin/debootstick]
due 3.0.0-1 due/3.0.0-1 error shell-script-fails-syntax-check 1 [usr/share/due/templates/common-templates/filesystem/usr/local/bin/duebuild]
fcitx 1:4.2.9.9-2.1 fcitx-bin/1:4.2.9.9-2.1+b1 error shell-script-fails-syntax-check 8 [usr/bin/fcitx-diagnose]
fcitx5 5.1.21-1 fcitx5/5.1.21-1 error shell-script-fails-syntax-check 8 [usr/bin/fcitx5-diagnose]
firehol 3.1.8+ds-1 fireqos/3.1.8+ds-1 overridden shell-script-fails-syntax-check 1 [usr/libexec/firehol/fireqos]
gnulib 20260704-2 gnulib/20260704-2 overridden shell-script-fails-syntax-check 1 [usr/share/gnulib/build-aux/update-copyright]
golang-github-hashicorp-atlas-go 0.0~git20230125.46e9b3e-1 golang-github-hashicorp-atlas-go-dev/0.0~git20230125.46e9b3e-1 overridden shell-script-fails-syntax-check 1 [usr/share/gocode/src/github.com/hashicorp/atlas-go/archive/test-fixtures/archive-git/DOTgit/hooks/pre-rebase.sample]
kameleon 2.11.1-1 kameleon/2.11.1-1 overridden shell-script-fails-syntax-check 1 [usr/share/rubygems-integration/all/gems/kameleon-builder-2.11.1/contrib/kameleon_exec_cmd.sh]
kameleon 2.11.1-1 kameleon/2.11.1-1 overridden shell-script-fails-syntax-check 1 [usr/share/rubygems-integration/all/gems/kameleon-builder-2.11.1/contrib/kameleon_exec_cmd_wrapper.sh]
kde-dev-scripts 4:26.04.0-1 kdesdk-scripts/4:26.04.0-1 overridden shell-script-fails-syntax-check 1 [usr/bin/svnversions]
kde-dev-scripts 4:26.04.0-1 kdesdk-scripts/4:26.04.0-1 overridden shell-script-fails-syntax-check 1 [usr/bin/cvsversion]
kdevelop 4:26.04.0-2 kdevelop/4:26.04.0-2+b1 overridden shell-script-fails-syntax-check 4 [usr/bin/kdevplatform_shell_environment.sh]
metview 5.26.3-6 metview/5.26.3-6 overridden shell-script-fails-syntax-check 1 [usr/lib/x86_64-linux-gnu/metview/mv_mail]
metview 5.26.3-6 metview/5.26.3-6 overridden shell-script-fails-syntax-check 1 [usr/lib/aarch64-linux-gnu/metview/mv_mail]
metview 5.26.3-6 metview/5.26.3-6 overridden shell-script-fails-syntax-check 1 [usr/lib/powerpc64le-linux-gnu/metview/mv_mail]
metview 5.26.3-6 metview/5.26.3-6 overridden shell-script-fails-syntax-check 1 [usr/lib/loongarch64-linux-gnu/metview/mv_mail]
metview 5.26.3-6 metview/5.26.3-6 overridden shell-script-fails-syntax-check 1 [usr/lib/riscv64-linux-gnu/metview/mv_mail]
metview 5.26.3-6 metview/5.26.3-6 overridden shell-script-fails-syntax-check 1 [usr/lib/s390x-linux-gnu/metview/mv_mail]
osc 1.15.1-1 osc/1.15.1-1 overridden shell-script-fails-syntax-check 1 [usr/lib/osc/complete]
python-oslo.config 1:10.3.0-2 python3-oslo.config/1:10.3.0-2 error shell-script-fails-syntax-check 1 [usr/lib/python3/dist-packages/oslo_config/sources/templates/bash-completion.template]
rails 2:7.2.3.1+dfsg-1 ruby-railties/2:7.2.3.1+dfsg-1 error shell-script-fails-syntax-check 1 [usr/share/rubygems-integration/all/gems/railties-7.2.3.1/lib/rails/generators/rails/app/templates/docker-entrypoint.tt]
r-bioc-biocparallel 1.46.0-1 r-bioc-biocparallel/1.46.0-1 overridden shell-script-fails-syntax-check 5 [usr/lib/R/site-library/BiocParallel/unitTests/test_script/test-sge-template.tmpl]
r-cran-batchtools 0.9.18+dfsg-1 r-cran-batchtools/0.9.18+dfsg-1 overridden shell-script-fails-syntax-check 4 [usr/lib/R/site-library/batchtools/templates/slurm-dortmund.tmpl]
r-cran-batchtools 0.9.18+dfsg-1 r-cran-batchtools/0.9.18+dfsg-1 overridden shell-script-fails-syntax-check 4 [usr/lib/R/site-library/batchtools/templates/sge-simple.tmpl]
r-cran-batchtools 0.9.18+dfsg-1 r-cran-batchtools/0.9.18+dfsg-1 overridden shell-script-fails-syntax-check 4 [usr/lib/R/site-library/batchtools/templates/slurm-simple.tmpl]
r-cran-batchtools 0.9.18+dfsg-1 r-cran-batchtools/0.9.18+dfsg-1 overridden shell-script-fails-syntax-check 4 [usr/lib/R/site-library/batchtools/templates/torque-lido.tmpl]
r-cran-batchtools 0.9.18+dfsg-1 r-cran-batchtools/0.9.18+dfsg-1 overridden shell-script-fails-syntax-check 4 [usr/lib/R/site-library/batchtools/templates/slurm-lido3.tmpl]
r-cran-batchtools 0.9.18+dfsg-1 r-cran-batchtools/0.9.18+dfsg-1+b1 overridden shell-script-fails-syntax-check 1 [usr/lib/R/site-library/batchtools/templates/sge-simple.tmpl]
r-cran-batchtools 0.9.18+dfsg-1 r-cran-batchtools/0.9.18+dfsg-1+b1 overridden shell-script-fails-syntax-check 1 [usr/lib/R/site-library/batchtools/templates/slurm-simple.tmpl]
r-cran-batchtools 0.9.18+dfsg-1 r-cran-batchtools/0.9.18+dfsg-1+b1 overridden shell-script-fails-syntax-check 1 [usr/lib/R/site-library/batchtools/templates/slurm-lido3.tmpl]
r-cran-batchtools 0.9.18+dfsg-1 r-cran-batchtools/0.9.18+dfsg-1+b1 overridden shell-script-fails-syntax-check 1 [usr/lib/R/site-library/batchtools/templates/torque-lido.tmpl]
r-cran-batchtools 0.9.18+dfsg-1 r-cran-batchtools/0.9.18+dfsg-1+b1 overridden shell-script-fails-syntax-check 1 [usr/lib/R/site-library/batchtools/templates/slurm-dortmund.tmpl]
r-cran-future.batchtools 0.22.0+dfsg-1 r-cran-future.batchtools/0.22.0+dfsg-1 overridden shell-script-fails-syntax-check 1 [usr/lib/R/site-library/future.batchtools/templates-for-R_CMD_check/batchtools.torque.tmpl]
r-cran-future.batchtools 0.22.0+dfsg-1 r-cran-future.batchtools/0.22.0+dfsg-1 overridden shell-script-fails-syntax-check 1 [usr/lib/R/site-library/future.batchtools/templates/sge.tmpl]
r-cran-future.batchtools 0.22.0+dfsg-1 r-cran-future.batchtools/0.22.0+dfsg-1 overridden shell-script-fails-syntax-check 1 [usr/lib/R/site-library/future.batchtools/templates/torque.tmpl]
r-cran-future.batchtools 0.22.0+dfsg-1 r-cran-future.batchtools/0.22.0+dfsg-1 overridden shell-script-fails-syntax-check 1 [usr/lib/R/site-library/future.batchtools/templates/slurm.tmpl]
r-cran-future.batchtools 0.22.0+dfsg-1 r-cran-future.batchtools/0.22.0+dfsg-1 overridden shell-script-fails-syntax-check 1 [usr/lib/R/site-library/future.batchtools/templates-for-R_CMD_check/batchtools.sge.tmpl]
r-cran-future.batchtools 0.22.0+dfsg-1 r-cran-future.batchtools/0.22.0+dfsg-1 error shell-script-fails-syntax-check 1 [usr/lib/R/site-library/future.batchtools/templates/lsf.tmpl]
r-cran-future.batchtools 0.22.0+dfsg-1 r-cran-future.batchtools/0.22.0+dfsg-1 error shell-script-fails-syntax-check 1 [usr/lib/R/site-library/future.batchtools/templates/bash.tmpl]
r-cran-future.batchtools 0.22.0+dfsg-1 r-cran-future.batchtools/0.22.0+dfsg-1 error shell-script-fails-syntax-check 1 [usr/lib/R/site-library/future.batchtools/templates/openlava.tmpl]
r-cran-future.batchtools 0.22.0+dfsg-1 r-cran-future.batchtools/0.22.0+dfsg-1 error shell-script-fails-syntax-check 1 [usr/lib/R/site-library/future.batchtools/templates-for-R_CMD_check/batchtools.slurm.tmpl]
ruby-logging-rails 0.6.0-4 ruby-logging-rails/0.6.0-4 overridden shell-script-fails-syntax-check 1 [usr/share/rubygems-integration/all/gems/logging-rails-0.6.0/script/bootstrap]
rust-fontconfig-parser 0.5.8-1 librust-fontconfig-parser-dev/0.5.8-1+b1 error shell-script-fails-syntax-check 8 [usr/share/cargo/registry/fontconfig-parser-0.5.8/test-conf/generate_json.sh]
rust-pathrs 0.2.5+dfsg-1 librust-pathrs-dev/0.2.5+dfsg-1 error shell-script-fails-syntax-check 8 [usr/share/cargo/registry/pathrs-0.2.5/e2e-tests/Makefile]
systemtap 5.5-1 systemtap-doc/5.5-1 overridden shell-script-fails-syntax-check 8 [usr/share/systemtap/examples/stapgames/2048.stp]
texlive-extra 2026.20260711-2 texlive-extra-utils/2026.20260711-2 error shell-script-fails-syntax-check 1 [usr/share/texlive/texmf-dist/scripts/pdfxup/pdfxup]