Samba and ShellCheck

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


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/ $(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 Schneider                      asn at
Samba Team                   
GPG-ID:     8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D

More information about the samba-technical mailing list