(command string)
| 186 | } |
| 187 | |
| 188 | func hasOutputRedirection(command string) bool { |
| 189 | for _, token := range Tokenize(command, false) { |
| 190 | switch token { |
| 191 | case ">", ">>", "1>", "2>", "&>": |
| 192 | return true |
| 193 | } |
| 194 | } |
| 195 | return false |
| 196 | } |
no test coverage detected