mate-desktop / mate-common

Common scripts and macros to develop with MATE
https://mate-desktop.org
GNU General Public License v3.0
24 stars 23 forks source link

mate-common: bash-term-in-posix-shell [usr/bin/mate-autogen:42] '`echo 'x\c'' #35

Open sunweaver opened 2 years ago

sunweaver commented 2 years ago

Expected behaviour

No warning about bashism in mate-autogen.

Actual behaviour

Debian's lintian tool complains about a bashism in mate-autogen

N:
I: mate-common: bash-term-in-posix-shell [usr/bin/mate-autogen:42] '`echo 'x\c''
N: 
N:   This script is marked as running under /bin/sh, but it seems to use a feature found in
N:   bash but not in the SUSv3 or POSIX shell specification.
N:   
N:   Some examples are:
N:   
N:   - == in a test, it should use = instead - read without a variable in the argument -
N:   function to define a function - source instead of . - . command args, passing arguments
N:   to commands via source is not supported - {foo,bar} instead of foo bar - [[ test ]]
N:   instead of [ test ] (requires a Korn shell) - type instead of which or command -v
N: 
N:   Visibility: info
N:   Show-Always: no
N:   Check: shell/non-posix/bash-centric
N: 
N:

Steps to reproduce the behaviour

Build mate-common 1.26.0-1 from Debian (coming soon) and run Debian unstable's lintian 2.111.0 over the resulting package.

MATE general version

1.26

Package version

1.26.0-1

Linux Distribution

Debian

Link to bugreport of your Distribution (requirement)

none