Arithmetic Expansion Command Execution Medium

Using '$(( expr ))' as a standalone command causes the shell to attempt executing the resulting number as a command. To perform arithmetic operations without command execution, use '(( expr ))' in Bash/Ksh or '_=$(( expr ))' in POSIX-compliant shells.

Detector ID
shell/arithmetic-expansion-command-execution@v1.0
Category
Common Weakness Enumeration (CWE) external icon
-
Tags
-