Skip to content

invalid-exec-command

Default severity: warning

exec.Command expects one executable name or path, not a shell command that needs argument splitting.

exec.Command("ls / /tmp")
exec.Command("ls", "/", "/tmp")