ExecWordIsCommand returns true if given exec word is a command-like string (excluding any paths)
(f string)
| 147 | // ExecWordIsCommand returns true if given exec word is a command-like string |
| 148 | // (excluding any paths) |
| 149 | func ExecWordIsCommand(f string) bool { |
| 150 | if strings.Contains(f, "(") || strings.Contains(f, "=") { |
| 151 | return false |
| 152 | } |
| 153 | return true |
| 154 | } |
no test coverage detected