MCPcopy Create free account
hub / github.com/yuin/gopher-lua / popenArgs

Function popenArgs

utils.go:158–167  ·  view source on GitHub ↗
(arg string)

Source from the content-addressed store, hash-verified

156}
157
158func popenArgs(arg string) (string, []string) {
159 cmd := "/bin/sh"
160 args := []string{"-c"}
161 if LuaOS == "windows" {
162 cmd = "C:\\Windows\\system32\\cmd.exe"
163 args = []string{"/c"}
164 }
165 args = append(args, arg)
166 return cmd, args
167}
168
169func isGoroutineSafe(lv LValue) bool {
170 switch v := lv.(type) {

Callers 2

osExecuteFunction · 0.85
newProcessFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…