Function in External Command Medium

Shell functions are only recognized within the shell environment and cannot be directly used by external commands like find, xargs, su, or sudo. To resolve this, use a separate script or execute the function contents through 'sh -c' when passing to external commands.

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