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-15 autoproject/0.20-15 error shell-script-fails-syntax-check 1 [usr/share/autoproject/cli/sh/none/program.in]
calamares-settings-debian 14.0.1-2 calamares-settings-debian/14.0.1-2 error shell-script-fails-syntax-check 1 [usr/bin/add-calamares-desktop-icon]
ceph 18.2.7+ds-1 ceph-mgr-dashboard/18.2.7+ds-1 error shell-script-fails-syntax-check 1 [usr/share/ceph/mgr/dashboard/ci/cephadm/bootstrap-cluster.sh]
cmake 3.31.6-2 cmake-data/3.31.6-2 overridden shell-script-fails-syntax-check 1 [usr/share/cmake-3.31/Modules/Platform/AIX/ExportImportList]
cmake 4.1.1-1 cmake-data/4.1.1-1 overridden shell-script-fails-syntax-check 1 [usr/share/cmake-4.1/Modules/Platform/AIX/ExportImportList]
crowdsec 1.4.6-10 golang-github-crowdsecurity-crowdsec-dev/1.4.6-10 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.4.1+dfsg-1 erlang-examples/1:27.3.4.1+dfsg-1 overridden shell-script-fails-syntax-check 1 [usr/lib/erlang/lib/megaco-4.7.2/examples/meas/mstone2.sh.skel]
erlang 1:27.3.4.1+dfsg-1 erlang-examples/1:27.3.4.1+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.4.1+dfsg-1 erlang-examples/1:27.3.4.1+dfsg-1 overridden shell-script-fails-syntax-check 1 [usr/lib/erlang/lib/megaco-4.7.2/examples/meas/mstone1.sh.skel]
erlang 1:27.3.4.1+dfsg-1 erlang-examples/1:27.3.4.1+dfsg-1 overridden shell-script-fails-syntax-check 1 [usr/lib/erlang/lib/megaco-4.7.2/examples/meas/meas.sh.skel]
erlang 1:28.0.2+dfsg-1 erlang-examples/1:28.0.2+dfsg-1 overridden shell-script-fails-syntax-check 1 [usr/lib/erlang/lib/megaco-4.8/examples/meas/mstone2.sh.skel]
erlang 1:28.0.2+dfsg-1 erlang-examples/1:28.0.2+dfsg-1 overridden shell-script-fails-syntax-check 1 [usr/lib/erlang/lib/inets-9.4/examples/httpd_load_test/hdlt.sh.skel]
erlang 1:28.0.2+dfsg-1 erlang-examples/1:28.0.2+dfsg-1 overridden shell-script-fails-syntax-check 1 [usr/lib/erlang/lib/megaco-4.8/examples/meas/meas.sh.skel]
erlang 1:28.0.2+dfsg-1 erlang-examples/1:28.0.2+dfsg-1 overridden shell-script-fails-syntax-check 1 [usr/lib/erlang/lib/megaco-4.8/examples/meas/mstone1.sh.skel]
fcitx 1:4.2.9.9-2 fcitx-bin/1:4.2.9.9-2+b2 error shell-script-fails-syntax-check 9 [usr/bin/fcitx-diagnose]
fcitx5 5.1.14-1 fcitx5/5.1.14-1 error shell-script-fails-syntax-check 9 [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]
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-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-token]
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-ls]
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-unregister]
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-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-archivepoll]
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-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-bringonline]
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-mkdir]
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-xattr]
gnulib 20250303-3 gnulib/20250303-3 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.0-1 kameleon/2.11.0-1 overridden shell-script-fails-syntax-check 1 [usr/share/rubygems-integration/all/gems/kameleon-builder-2.11.0/contrib/kameleon_exec_cmd_wrapper.sh]
kameleon 2.11.0-1 kameleon/2.11.0-1 overridden shell-script-fails-syntax-check 1 [usr/share/rubygems-integration/all/gems/kameleon-builder-2.11.0/contrib/kameleon_exec_cmd.sh]
kde-dev-scripts 4:25.04.0-1 kdesdk-scripts/4:25.04.0-1 overridden shell-script-fails-syntax-check 1 [usr/bin/svnversions]
kde-dev-scripts 4:25.04.0-1 kdesdk-scripts/4:25.04.0-1 overridden shell-script-fails-syntax-check 1 [usr/bin/cvsversion]
kdevelop 4:24.12.3-1 kdevelop/4:24.12.3-1 overridden shell-script-fails-syntax-check 4 [usr/bin/kdevplatform_shell_environment.sh]
kdevelop 4:25.04.0-1 kdevelop/4:25.04.0-1 overridden shell-script-fails-syntax-check 4 [usr/bin/kdevplatform_shell_environment.sh]
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/x86_64-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.25.1-2 metview/5.25.1-2 error shell-script-fails-syntax-check 1 [usr/lib/aarch64-linux-gnu/metview/mv_mail]
metview 5.25.1-2 metview/5.25.1-2 error shell-script-fails-syntax-check 1 [usr/lib/x86_64-linux-gnu/metview/mv_mail]
metview 5.25.1-2 metview/5.25.1-2 error shell-script-fails-syntax-check 1 [usr/lib/powerpc64le-linux-gnu/metview/mv_mail]
metview 5.25.1-2 metview/5.25.1-2 error shell-script-fails-syntax-check 1 [usr/lib/mips64el-linux-gnuabi64/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:9.7.1-3 python3-oslo.config/1:9.7.1-3 error shell-script-fails-syntax-check 1 [usr/lib/python3/dist-packages/oslo_config/sources/templates/bash-completion.template]
python-oslo.config 1:10.0.0-1 python3-oslo.config/1:10.0.0-1 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-7 ruby-railties/2:7.2.2.1+dfsg-7 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-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/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/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/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/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-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/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/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-lido3.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-for-R_CMD_check/batchtools.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/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/torque.tmpl]
rust-fontconfig-parser 0.5.8-1 librust-fontconfig-parser-dev/0.5.8-1 error shell-script-fails-syntax-check 9 [usr/share/cargo/registry/fontconfig-parser-0.5.8/test-conf/generate_json.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-5 systemtap-doc/5.1-5 overridden shell-script-fails-syntax-check 9 [usr/share/systemtap/examples/stapgames/2048.stp]
texlive-extra 2025.20250727-2 texlive-extra-utils/2025.20250727-2 error shell-script-fails-syntax-check 1 [usr/share/texlive/texmf-dist/scripts/pdfxup/pdfxup]
texlive-extra 2025.20250727-3 texlive-extra-utils/2025.20250727-3 error shell-script-fails-syntax-check 1 [usr/share/texlive/texmf-dist/scripts/pdfxup/pdfxup]