Pipeline Assignment Syntax Medium

The assignment of a pipeline to a variable is incorrect. The pipeline operator has higher precedence than assignment, leading to unexpected results. Use command substitution to capture the output of the pipeline and assign it to a variable.

Detector ID
shell/pipeline-assignment-syntax@v1.0
Category
Common Weakness Enumeration (CWE) external icon
-
Tags
-