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
ansible 11.2.0+dfsg-1 ansible/11.2.0+dfsg-1 overridden shell-script-fails-syntax-check 1 [usr/lib/python3/dist-packages/ansible_collections/community/zabbix/roles/zabbix_proxy/files/install_semodule.bsx]
ansible 11.2.0+dfsg-1 ansible/11.2.0+dfsg-1 overridden shell-script-fails-syntax-check 1 [usr/lib/python3/dist-packages/ansible_collections/community/zabbix/roles/zabbix_server/files/install_semodule.bsx]
autoproject 0.20-15 autoproject/0.20-15 error shell-script-fails-syntax-check 1 [usr/share/autoproject/cli/sh/none/program.in]
calamares-settings-debian 13.0.12-2 calamares-settings-debian/13.0.12-2 error shell-script-fails-syntax-check 1 [usr/bin/add-calamares-desktop-icon]
ceph 18.2.4+ds-13 ceph-mgr-dashboard/18.2.4+ds-13 error shell-script-fails-syntax-check 1 [usr/share/ceph/mgr/dashboard/ci/cephadm/bootstrap-cluster.sh]
cmake 3.31.6-1 cmake-data/3.31.6-1 overridden shell-script-fails-syntax-check 1 [usr/share/cmake-3.31/Modules/Platform/AIX/ExportImportList]
crowdsec 1.4.6-9 golang-github-crowdsecurity-crowdsec-dev/1.4.6-9 overridden shell-script-fails-syntax-check 1 [usr/share/gocode/src/github.com/crowdsecurity/crowdsec/docker/docker_start.sh]
debootstick 2.8 debootstick/2.8 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]
erlang 1:27.3+dfsg-1 erlang-examples/1:27.3+dfsg-1 overridden shell-script-fails-syntax-check 1 [usr/lib/erlang/lib/inets-9.3.2/examples/httpd_load_test/hdlt.sh.skel]
erlang 1:27.3+dfsg-1 erlang-examples/1:27.3+dfsg-1 overridden shell-script-fails-syntax-check 1 [usr/lib/erlang/lib/megaco-4.7/examples/meas/mstone2.sh.skel]
erlang 1:27.3+dfsg-1 erlang-examples/1:27.3+dfsg-1 overridden shell-script-fails-syntax-check 1 [usr/lib/erlang/lib/megaco-4.7/examples/meas/meas.sh.skel]
erlang 1:27.3+dfsg-1 erlang-examples/1:27.3+dfsg-1 overridden shell-script-fails-syntax-check 1 [usr/lib/erlang/lib/megaco-4.7/examples/meas/mstone1.sh.skel]
fcitx 1:4.2.9.9-2 fcitx-bin/1:4.2.9.9-2+b1 error shell-script-fails-syntax-check 9 [usr/bin/fcitx-diagnose]
fcitx5 5.1.12-2 fcitx5/5.1.12-2 error shell-script-fails-syntax-check 9 [usr/bin/fcitx5-diagnose]
firehol 3.1.7+ds-5 fireqos/3.1.7+ds-5 overridden shell-script-fails-syntax-check 1 [usr/libexec/firehol/fireqos]
gfal2-util 1.9.0-2 gfal2-util-scripts/1.9.0-2 overridden shell-script-fails-syntax-check 1 [usr/bin/gfal-legacy-unregister]
gfal2-util 1.9.0-2 gfal2-util-scripts/1.9.0-2 overridden shell-script-fails-syntax-check 1 [usr/bin/gfal-chmod]
gfal2-util 1.9.0-2 gfal2-util-scripts/1.9.0-2 overridden shell-script-fails-syntax-check 1 [usr/bin/gfal-bringonline]
gfal2-util 1.9.0-2 gfal2-util-scripts/1.9.0-2 overridden shell-script-fails-syntax-check 1 [usr/bin/gfal-archivepoll]
gfal2-util 1.9.0-2 gfal2-util-scripts/1.9.0-2 overridden shell-script-fails-syntax-check 1 [usr/bin/gfal-xattr]
gfal2-util 1.9.0-2 gfal2-util-scripts/1.9.0-2 overridden shell-script-fails-syntax-check 1 [usr/bin/gfal-ls]
gfal2-util 1.9.0-2 gfal2-util-scripts/1.9.0-2 overridden shell-script-fails-syntax-check 1 [usr/bin/gfal-rm]
gfal2-util 1.9.0-2 gfal2-util-scripts/1.9.0-2 overridden shell-script-fails-syntax-check 1 [usr/bin/gfal-save]
gfal2-util 1.9.0-2 gfal2-util-scripts/1.9.0-2 overridden shell-script-fails-syntax-check 1 [usr/bin/gfal-stat]
gfal2-util 1.9.0-2 gfal2-util-scripts/1.9.0-2 overridden shell-script-fails-syntax-check 1 [usr/bin/gfal-rename]
gfal2-util 1.9.0-2 gfal2-util-scripts/1.9.0-2 overridden shell-script-fails-syntax-check 1 [usr/bin/gfal-sum]
gfal2-util 1.9.0-2 gfal2-util-scripts/1.9.0-2 overridden shell-script-fails-syntax-check 1 [usr/bin/gfal-copy]
gfal2-util 1.9.0-2 gfal2-util-scripts/1.9.0-2 overridden shell-script-fails-syntax-check 1 [usr/bin/gfal-evict]
gfal2-util 1.9.0-2 gfal2-util-scripts/1.9.0-2 overridden shell-script-fails-syntax-check 1 [usr/bin/gfal-legacy-register]
gfal2-util 1.9.0-2 gfal2-util-scripts/1.9.0-2 overridden shell-script-fails-syntax-check 1 [usr/bin/gfal-legacy-replicas]
gfal2-util 1.9.0-2 gfal2-util-scripts/1.9.0-2 overridden shell-script-fails-syntax-check 1 [usr/bin/gfal-token]
gfal2-util 1.9.0-2 gfal2-util-scripts/1.9.0-2 overridden shell-script-fails-syntax-check 1 [usr/bin/gfal-mkdir]
gfal2-util 1.9.0-2 gfal2-util-scripts/1.9.0-2 overridden shell-script-fails-syntax-check 1 [usr/bin/gfal-cat]
gfal2-util 1.9.0-2 gfal2-util-scripts/1.9.0-2 overridden shell-script-fails-syntax-check 1 [usr/bin/gfal-legacy-bringonline]
gnulib 20250303-1 gnulib/20250303-1 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]
kde-dev-scripts 4:24.12.1-1 kdesdk-scripts/4:24.12.1-1 overridden shell-script-fails-syntax-check 1 [usr/bin/svnversions]
kde-dev-scripts 4:24.12.1-1 kdesdk-scripts/4:24.12.1-1 overridden shell-script-fails-syntax-check 1 [usr/bin/cvsversion]
metview 5.23.1-1 metview/5.23.1-1+b1 error shell-script-fails-syntax-check 1 [usr/lib/aarch64-linux-gnu/metview/mv_mail]
metview 5.23.1-1 metview/5.23.1-1+b1 error shell-script-fails-syntax-check 1 [usr/lib/powerpc64le-linux-gnu/metview/mv_mail]
metview 5.23.1-1 metview/5.23.1-1+b1 error shell-script-fails-syntax-check 1 [usr/lib/mips64el-linux-gnuabi64/metview/mv_mail]
metview 5.23.1-1 metview/5.23.1-1+b1 error shell-script-fails-syntax-check 1 [usr/lib/x86_64-linux-gnu/metview/mv_mail]
osc 1.12.1-2 osc/1.12.1-2 overridden shell-script-fails-syntax-check 1 [usr/lib/osc/complete]
python-oslo.config 1:9.6.0-6 python3-oslo.config/1:9.6.0-6 error shell-script-fails-syntax-check 1 [usr/lib/python3/dist-packages/oslo_config/sources/templates/bash-completion.template]
python-oslo.config 1:9.7.1-2 python3-oslo.config/1:9.7.1-2 error shell-script-fails-syntax-check 1 [usr/lib/python3/dist-packages/oslo_config/sources/templates/bash-completion.template]
rails 2:7.2.2.1+dfsg-2 ruby-railties/2:7.2.2.1+dfsg-2 error shell-script-fails-syntax-check 1 [usr/share/rubygems-integration/all/gems/railties-7.2.2.1/lib/rails/generators/rails/app/templates/docker-entrypoint.tt]
r-bioc-biocparallel 1.40.0-2 r-bioc-biocparallel/1.40.0-2 overridden shell-script-fails-syntax-check 6 [usr/lib/R/site-library/BiocParallel/unitTests/test_script/test-sge-template.tmpl]
r-cran-batchtools 0.9.17+dfsg-1 r-cran-batchtools/0.9.17+dfsg-1 overridden shell-script-fails-syntax-check 7 [usr/lib/R/site-library/batchtools/templates/slurm-dortmund.tmpl]
r-cran-batchtools 0.9.17+dfsg-1 r-cran-batchtools/0.9.17+dfsg-1 overridden shell-script-fails-syntax-check 7 [usr/lib/R/site-library/batchtools/templates/slurm-simple.tmpl]
r-cran-batchtools 0.9.17+dfsg-1 r-cran-batchtools/0.9.17+dfsg-1 overridden shell-script-fails-syntax-check 7 [usr/lib/R/site-library/batchtools/templates/sge-simple.tmpl]
r-cran-batchtools 0.9.17+dfsg-1 r-cran-batchtools/0.9.17+dfsg-1 overridden shell-script-fails-syntax-check 7 [usr/lib/R/site-library/batchtools/templates/slurm-lido3.tmpl]
r-cran-batchtools 0.9.17+dfsg-1 r-cran-batchtools/0.9.17+dfsg-1 overridden shell-script-fails-syntax-check 7 [usr/lib/R/site-library/batchtools/templates/torque-lido.tmpl]
r-cran-batchtools 0.9.17+dfsg-1 r-cran-batchtools/0.9.17+dfsg-1+b1 overridden shell-script-fails-syntax-check 2 [usr/lib/R/site-library/batchtools/templates/sge-simple.tmpl]
r-cran-batchtools 0.9.17+dfsg-1 r-cran-batchtools/0.9.17+dfsg-1+b1 overridden shell-script-fails-syntax-check 2 [usr/lib/R/site-library/batchtools/templates/slurm-lido3.tmpl]
r-cran-batchtools 0.9.17+dfsg-1 r-cran-batchtools/0.9.17+dfsg-1+b1 overridden shell-script-fails-syntax-check 2 [usr/lib/R/site-library/batchtools/templates/slurm-dortmund.tmpl]
r-cran-batchtools 0.9.17+dfsg-1 r-cran-batchtools/0.9.17+dfsg-1+b1 overridden shell-script-fails-syntax-check 2 [usr/lib/R/site-library/batchtools/templates/torque-lido.tmpl]
r-cran-batchtools 0.9.17+dfsg-1 r-cran-batchtools/0.9.17+dfsg-1+b1 overridden shell-script-fails-syntax-check 2 [usr/lib/R/site-library/batchtools/templates/slurm-simple.tmpl]
r-cran-future.batchtools 0.12.1+dfsg-1 r-cran-future.batchtools/0.12.1+dfsg-1 overridden shell-script-fails-syntax-check 1 [usr/lib/R/site-library/future.batchtools/templates/torque.tmpl]
r-cran-future.batchtools 0.12.1+dfsg-1 r-cran-future.batchtools/0.12.1+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.12.1+dfsg-1 r-cran-future.batchtools/0.12.1+dfsg-1 overridden shell-script-fails-syntax-check 1 [usr/lib/R/site-library/future.batchtools/templates/slurm.tmpl]
r-cran-future.batchtools 0.12.1+dfsg-1 r-cran-future.batchtools/0.12.1+dfsg-1 overridden shell-script-fails-syntax-check 1 [usr/lib/R/site-library/future.batchtools/templates/sge.tmpl]
r-cran-future.batchtools 0.12.1+dfsg-1 r-cran-future.batchtools/0.12.1+dfsg-1 overridden shell-script-fails-syntax-check 1 [usr/lib/R/site-library/future.batchtools/templates-for-R_CMD_check/batchtools.torque.tmpl]
rust-lsp-types 0.94.1-2 librust-lsp-types-dev/0.94.1-2 error shell-script-fails-syntax-check 9 [usr/share/cargo/registry/lsp-types-0.94.1/release.sh]
rust-nvml-wrapper 0.10.0-1 librust-nvml-wrapper-dev/0.10.0-1 error shell-script-fails-syntax-check 9 [usr/share/cargo/registry/nvml-wrapper-0.10.0/unwrapped_functions.sh]
rust-nvml-wrapper-sys 0.8.0-1 librust-nvml-wrapper-sys-dev/0.8.0-1 error shell-script-fails-syntax-check 9 [usr/share/cargo/registry/nvml-wrapper-sys-0.8.0/gen_bindings.sh]
rust-tinyvec 1.6.0-2 librust-tinyvec-dev/1.6.0-2+b2 error shell-script-fails-syntax-check 9 [usr/share/cargo/registry/tinyvec-1.6.0/gen-array-impls.sh]
systemtap 5.1-4.1 systemtap-doc/5.1-4.1 overridden shell-script-fails-syntax-check 9 [usr/share/systemtap/examples/stapgames/2048.stp]
texlive-extra 2024.20250309-2 texlive-extra-utils/2024.20250309-2 error shell-script-fails-syntax-check 1 [usr/share/texlive/texmf-dist/scripts/pdfxup/pdfxup]