- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for EscapeArg (0.11 sec)
-
src/syscall/exec_windows.go
func EscapeArg(s string) string { if len(s) == 0 { return `""` } for i := 0; i < len(s); i++ { switch s[i] { case '"', '\\', ' ', '\t': // Some escaping required. b := make([]byte, 0, len(s)+2) b = appendEscapeArg(b, s) return string(b) } } return s } // appendEscapeArg escapes the string s, as per escapeArg,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 28 18:29:48 UTC 2023 - 10.3K bytes - Viewed (0) -
src/os/os_windows_test.go
for _, cmd := range cmds { compareCommandLineToArgvWithSyscall(t, "test"+cmd) compareCommandLineToArgvWithSyscall(t, `"cmd line"`+cmd) compareCommandLineToArgvWithSyscall(t, exe+cmd) // test both syscall.EscapeArg and os.commandLineToArgv args := os.CommandLineToArgv(exe + cmd) out, err := testenv.Command(t, args[0], args[1:]...).CombinedOutput() if err != nil { t.Fatalf("running %q failed: %v\n%v", args, err, string(out))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 41.8K bytes - Viewed (0)