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 tag type tag information count
ansible 11.1.0+dfsg-1 ansible/11.1.0+dfsg-1 overridden shell-script-fails-syntax-check [usr/lib/python3/dist-packages/ansible_collections/community/zabbix/roles/zabbix_server/files/install_semodule.bsx] 1
ansible 11.1.0+dfsg-1 ansible/11.1.0+dfsg-1 overridden shell-script-fails-syntax-check [usr/lib/python3/dist-packages/ansible_collections/community/zabbix/roles/zabbix_proxy/files/install_semodule.bsx] 1
autoproject 0.20-15 autoproject/0.20-15 error shell-script-fails-syntax-check [usr/share/autoproject/cli/sh/none/program.in] 1
calamares-settings-debian 13.0.12-2 calamares-settings-debian/13.0.12-2 error shell-script-fails-syntax-check [usr/bin/add-calamares-desktop-icon] 1
ceph 18.2.4+ds-13 ceph-mgr-dashboard/18.2.4+ds-13 error shell-script-fails-syntax-check [usr/share/ceph/mgr/dashboard/ci/cephadm/bootstrap-cluster.sh] 1
cmake 3.31.5-1 cmake-data/3.31.5-1 overridden shell-script-fails-syntax-check [usr/share/cmake-3.31/Modules/Platform/AIX/ExportImportList] 1
crowdsec 1.4.6-9 golang-github-crowdsecurity-crowdsec-dev/1.4.6-9 overridden shell-script-fails-syntax-check [usr/share/gocode/src/github.com/crowdsecurity/crowdsec/docker/docker_start.sh] 1
debootstick 2.8 debootstick/2.8 overridden shell-script-fails-syntax-check [usr/sbin/debootstick] 1
due 3.0.0-1 due/3.0.0-1 error shell-script-fails-syntax-check [usr/share/due/templates/common-templates/filesystem/usr/local/bin/duebuild] 1
erlang 1:27.2+dfsg-3~exp1 erlang-examples/1:27.2+dfsg-3~exp1 overridden shell-script-fails-syntax-check [usr/lib/erlang/lib/inets-9.3.1/examples/httpd_load_test/hdlt.sh.skel] 1
erlang 1:27.2+dfsg-3~exp1 erlang-examples/1:27.2+dfsg-3~exp1 overridden shell-script-fails-syntax-check [usr/lib/erlang/lib/megaco-4.7/examples/meas/mstone2.sh.skel] 1
erlang 1:27.2+dfsg-3~exp1 erlang-examples/1:27.2+dfsg-3~exp1 overridden shell-script-fails-syntax-check [usr/lib/erlang/lib/megaco-4.7/examples/meas/mstone1.sh.skel] 1
erlang 1:27.2+dfsg-3~exp1 erlang-examples/1:27.2+dfsg-3~exp1 overridden shell-script-fails-syntax-check [usr/lib/erlang/lib/megaco-4.7/examples/meas/meas.sh.skel] 1
erlang 1:27.2.1+dfsg-1 erlang-examples/1:27.2.1+dfsg-1 overridden shell-script-fails-syntax-check [usr/lib/erlang/lib/megaco-4.7/examples/meas/mstone1.sh.skel] 1
erlang 1:27.2.1+dfsg-1 erlang-examples/1:27.2.1+dfsg-1 overridden shell-script-fails-syntax-check [usr/lib/erlang/lib/inets-9.3.1/examples/httpd_load_test/hdlt.sh.skel] 1
erlang 1:27.2.1+dfsg-1 erlang-examples/1:27.2.1+dfsg-1 overridden shell-script-fails-syntax-check [usr/lib/erlang/lib/megaco-4.7/examples/meas/meas.sh.skel] 1
erlang 1:27.2.1+dfsg-1 erlang-examples/1:27.2.1+dfsg-1 overridden shell-script-fails-syntax-check [usr/lib/erlang/lib/megaco-4.7/examples/meas/mstone2.sh.skel] 1
fcitx 1:4.2.9.9-2 fcitx-bin/1:4.2.9.9-2+b1 error shell-script-fails-syntax-check [usr/bin/fcitx-diagnose] 9
fcitx5 5.1.12-1 fcitx5/5.1.12-1 error shell-script-fails-syntax-check [usr/bin/fcitx5-diagnose] 9
firehol 3.1.7+ds-5 fireqos/3.1.7+ds-5 overridden shell-script-fails-syntax-check [usr/libexec/firehol/fireqos] 1
gfal2-util 1.9.0-2 gfal2-util-scripts/1.9.0-2 overridden shell-script-fails-syntax-check [usr/bin/gfal-sum] 1
gfal2-util 1.9.0-2 gfal2-util-scripts/1.9.0-2 overridden shell-script-fails-syntax-check [usr/bin/gfal-legacy-bringonline] 1
gfal2-util 1.9.0-2 gfal2-util-scripts/1.9.0-2 overridden shell-script-fails-syntax-check [usr/bin/gfal-copy] 1
gfal2-util 1.9.0-2 gfal2-util-scripts/1.9.0-2 overridden shell-script-fails-syntax-check [usr/bin/gfal-ls] 1
gfal2-util 1.9.0-2 gfal2-util-scripts/1.9.0-2 overridden shell-script-fails-syntax-check [usr/bin/gfal-token] 1
gfal2-util 1.9.0-2 gfal2-util-scripts/1.9.0-2 overridden shell-script-fails-syntax-check [usr/bin/gfal-legacy-unregister] 1
gfal2-util 1.9.0-2 gfal2-util-scripts/1.9.0-2 overridden shell-script-fails-syntax-check [usr/bin/gfal-stat] 1
gfal2-util 1.9.0-2 gfal2-util-scripts/1.9.0-2 overridden shell-script-fails-syntax-check [usr/bin/gfal-rename] 1
gfal2-util 1.9.0-2 gfal2-util-scripts/1.9.0-2 overridden shell-script-fails-syntax-check [usr/bin/gfal-evict] 1
gfal2-util 1.9.0-2 gfal2-util-scripts/1.9.0-2 overridden shell-script-fails-syntax-check [usr/bin/gfal-mkdir] 1
gfal2-util 1.9.0-2 gfal2-util-scripts/1.9.0-2 overridden shell-script-fails-syntax-check [usr/bin/gfal-bringonline] 1
gfal2-util 1.9.0-2 gfal2-util-scripts/1.9.0-2 overridden shell-script-fails-syntax-check [usr/bin/gfal-rm] 1
gfal2-util 1.9.0-2 gfal2-util-scripts/1.9.0-2 overridden shell-script-fails-syntax-check [usr/bin/gfal-legacy-replicas] 1
gfal2-util 1.9.0-2 gfal2-util-scripts/1.9.0-2 overridden shell-script-fails-syntax-check [usr/bin/gfal-cat] 1
gfal2-util 1.9.0-2 gfal2-util-scripts/1.9.0-2 overridden shell-script-fails-syntax-check [usr/bin/gfal-legacy-register] 1
gfal2-util 1.9.0-2 gfal2-util-scripts/1.9.0-2 overridden shell-script-fails-syntax-check [usr/bin/gfal-chmod] 1
gfal2-util 1.9.0-2 gfal2-util-scripts/1.9.0-2 overridden shell-script-fails-syntax-check [usr/bin/gfal-archivepoll] 1
gfal2-util 1.9.0-2 gfal2-util-scripts/1.9.0-2 overridden shell-script-fails-syntax-check [usr/bin/gfal-xattr] 1
gfal2-util 1.9.0-2 gfal2-util-scripts/1.9.0-2 overridden shell-script-fails-syntax-check [usr/bin/gfal-save] 1
gnulib 20250102-1 gnulib/20250102-1 overridden shell-script-fails-syntax-check [usr/share/gnulib/build-aux/update-copyright] 1
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 [usr/share/gocode/src/github.com/hashicorp/atlas-go/archive/test-fixtures/archive-git/DOTgit/hooks/pre-rebase.sample] 1
kde-dev-scripts 4:24.12.1-1 kdesdk-scripts/4:24.12.1-1 overridden shell-script-fails-syntax-check [usr/bin/svnversions] 1
kde-dev-scripts 4:24.12.1-1 kdesdk-scripts/4:24.12.1-1 overridden shell-script-fails-syntax-check [usr/bin/cvsversion] 1
kdevelop 4:24.12.0-5 kdevelop/4:24.12.0-5 overridden shell-script-fails-syntax-check [usr/bin/kdevplatform_shell_environment.sh] 4
metview 5.23.1-1 metview/5.23.1-1 error shell-script-fails-syntax-check [usr/lib/aarch64-linux-gnu/metview/mv_mail] 1
metview 5.23.1-1 metview/5.23.1-1 error shell-script-fails-syntax-check [usr/lib/mips64el-linux-gnuabi64/metview/mv_mail] 1
metview 5.23.1-1 metview/5.23.1-1 error shell-script-fails-syntax-check [usr/lib/powerpc64le-linux-gnu/metview/mv_mail] 1
metview 5.23.1-1 metview/5.23.1-1 error shell-script-fails-syntax-check [usr/lib/x86_64-linux-gnu/metview/mv_mail] 1
osc 1.11.1-1 osc/1.11.1-1 overridden shell-script-fails-syntax-check [usr/lib/osc/complete] 1
python-oslo.config 1:9.6.0-6 python3-oslo.config/1:9.6.0-6 error shell-script-fails-syntax-check [usr/lib/python3/dist-packages/oslo_config/sources/templates/bash-completion.template] 1
r-bioc-biocparallel 1.40.0-2 r-bioc-biocparallel/1.40.0-2 overridden shell-script-fails-syntax-check [usr/lib/R/site-library/BiocParallel/unitTests/test_script/test-sge-template.tmpl] 6
r-cran-batchtools 0.9.17+dfsg-1 r-cran-batchtools/0.9.17+dfsg-1 overridden shell-script-fails-syntax-check [usr/lib/R/site-library/batchtools/templates/torque-lido.tmpl] 7
r-cran-batchtools 0.9.17+dfsg-1 r-cran-batchtools/0.9.17+dfsg-1 overridden shell-script-fails-syntax-check [usr/lib/R/site-library/batchtools/templates/slurm-lido3.tmpl] 7
r-cran-batchtools 0.9.17+dfsg-1 r-cran-batchtools/0.9.17+dfsg-1 overridden shell-script-fails-syntax-check [usr/lib/R/site-library/batchtools/templates/sge-simple.tmpl] 7
r-cran-batchtools 0.9.17+dfsg-1 r-cran-batchtools/0.9.17+dfsg-1 overridden shell-script-fails-syntax-check [usr/lib/R/site-library/batchtools/templates/slurm-dortmund.tmpl] 7
r-cran-batchtools 0.9.17+dfsg-1 r-cran-batchtools/0.9.17+dfsg-1 overridden shell-script-fails-syntax-check [usr/lib/R/site-library/batchtools/templates/slurm-simple.tmpl] 7
r-cran-batchtools 0.9.17+dfsg-1 r-cran-batchtools/0.9.17+dfsg-1+b1 overridden shell-script-fails-syntax-check [usr/lib/R/site-library/batchtools/templates/sge-simple.tmpl] 2
r-cran-batchtools 0.9.17+dfsg-1 r-cran-batchtools/0.9.17+dfsg-1+b1 overridden shell-script-fails-syntax-check [usr/lib/R/site-library/batchtools/templates/torque-lido.tmpl] 2
r-cran-batchtools 0.9.17+dfsg-1 r-cran-batchtools/0.9.17+dfsg-1+b1 overridden shell-script-fails-syntax-check [usr/lib/R/site-library/batchtools/templates/slurm-simple.tmpl] 2
r-cran-batchtools 0.9.17+dfsg-1 r-cran-batchtools/0.9.17+dfsg-1+b1 overridden shell-script-fails-syntax-check [usr/lib/R/site-library/batchtools/templates/slurm-dortmund.tmpl] 2
r-cran-batchtools 0.9.17+dfsg-1 r-cran-batchtools/0.9.17+dfsg-1+b1 overridden shell-script-fails-syntax-check [usr/lib/R/site-library/batchtools/templates/slurm-lido3.tmpl] 2
r-cran-future.batchtools 0.12.1+dfsg-1 r-cran-future.batchtools/0.12.1+dfsg-1 overridden shell-script-fails-syntax-check [usr/lib/R/site-library/future.batchtools/templates-for-R_CMD_check/batchtools.torque.tmpl] 1
r-cran-future.batchtools 0.12.1+dfsg-1 r-cran-future.batchtools/0.12.1+dfsg-1 overridden shell-script-fails-syntax-check [usr/lib/R/site-library/future.batchtools/templates/slurm.tmpl] 1
r-cran-future.batchtools 0.12.1+dfsg-1 r-cran-future.batchtools/0.12.1+dfsg-1 overridden shell-script-fails-syntax-check [usr/lib/R/site-library/future.batchtools/templates/sge.tmpl] 1
r-cran-future.batchtools 0.12.1+dfsg-1 r-cran-future.batchtools/0.12.1+dfsg-1 overridden shell-script-fails-syntax-check [usr/lib/R/site-library/future.batchtools/templates/torque.tmpl] 1
r-cran-future.batchtools 0.12.1+dfsg-1 r-cran-future.batchtools/0.12.1+dfsg-1 overridden shell-script-fails-syntax-check [usr/lib/R/site-library/future.batchtools/templates-for-R_CMD_check/batchtools.sge.tmpl] 1
rust-lsp-types 0.94.1-2 librust-lsp-types-dev/0.94.1-2 error shell-script-fails-syntax-check [usr/share/cargo/registry/lsp-types-0.94.1/release.sh] 9
rust-tinyvec 1.6.0-2 librust-tinyvec-dev/1.6.0-2+b2 error shell-script-fails-syntax-check [usr/share/cargo/registry/tinyvec-1.6.0/gen-array-impls.sh] 9
systemtap 5.1-4 systemtap-doc/5.1-4 overridden shell-script-fails-syntax-check [usr/share/systemtap/examples/stapgames/2048.stp] 9
texlive-extra 2024.20250114-1 texlive-extra-utils/2024.20250114-1 error shell-script-fails-syntax-check [usr/share/texlive/texmf-dist/scripts/pdfxup/pdfxup] 1