Samba and ShellCheck

Andreas Schneider asn at samba.org
Tue Aug 23 05:50:24 UTC 2022


Hi,

for Samba master we have ShellCheck with error level in place now. It will 
check that our scripts are error free!

The next step would be to move ShellCheck to warning level and this will be 
quite some work. But first we need to discuss something.

If I run ShellCheck in warning level:

./script/check-shell-scripts.sh $(pwd) warning

The warning I see most of the time is:

warning: In POSIX sh, 'local' is undefined. [SC3043]


Why do do we use POSIX shell (#/bin/sh) for the majority of our tests (we also 
have scripts with #!/bin/bash)?


Best regards


	Andreas

-- 
Andreas Schneider                      asn at samba.org
Samba Team                             www.samba.org
GPG-ID:     8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D





More information about the samba-technical mailing list