koalaman / shellcheck

ShellCheck, a static analysis tool for shell scripts
https://www.shellcheck.net
GNU General Public License v3.0
36.45k stars 1.78k forks source link

SC2148: Offer option or pseudo-shell for "every shell" #3021

Open sparr opened 4 months ago

sparr commented 4 months ago

SC2148 complains when I don't specify the target shell in one of a few ways, as it is intended to.

I am writing some scripts that I intend to work across every shell, or at least every shell I can manage. I'd like either a new command line option or a name for a fake shell that will cause shellcheck to tell me if there's any code in my script that would be an error in any shell.