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

Please support all alias for busybox shell equally #2978

Open ale5000-git opened 6 months ago

ale5000-git commented 6 months ago

For new checks and feature suggestions

Here's a snippet or screenshot that shows the problem:

#!/bin/busybox bash
#!/bin/busybox ash
#!/bin/busybox sh

Here's what I wanted or expected to see:

sh, ash and bash in busybox are just alias of the same busybox shell, a sort of ash (with some bash extension), even when called as busybox sh. Only busybox hush is a different shell.