Skip to content

invalid-exec-command

Detect shell commands used as exec.Command program names.

Updated View as Markdown

Default severity: warning

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

Bad

exec.Command("ls / /tmp")

Good

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

Type to search…

↑↓ navigate↵ selectEsc close