Shebang Mismatch Medium

Using non-standard features in scripts with '#!/bin/sh' shebang can lead to portability issues and unexpected behavior, even when '/bin/sh' is symlinked to bash. To fix this, either change the shebang to '#!/usr/bin/env' bash or rewrite the script using only POSIX-compliant features.

Detector ID
shell/shebang-mismatch@v1.0
Category
Common Weakness Enumeration (CWE) external icon
-
Tags
-