POSIX Shell Compatibility Medium

Using non-POSIX features in a script declared as '/bin/sh' can lead to undefined behavior and portability issues across different systems and shells. To fix this, either declare a specific shell like (#!/bin/bash) or rewrite the script using only POSIX-compliant features.

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