Subshell Variable Modification Medium

Changes made to variables within a subshell are not reflected in the parent shell, leading to unexpected behavior. To avoid this issue, use alternative constructs like process substitution, here documents, or enable lastpipe option in Bash when appropriate.

Detector ID
shell/subshell-variable-modification@v1.0
Category
Common Weakness Enumeration (CWE) external icon
-
Tags
-