MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / hasOutputRedirection

Function hasOutputRedirection

tools/bash/classifier.go:188–196  ·  view source on GitHub ↗
(command string)

Source from the content-addressed store, hash-verified

186}
187
188func 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}

Callers 1

ClassifyCommandFunction · 0.85

Calls 1

TokenizeFunction · 0.85

Tested by

no test coverage detected