- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for EscapeArg (0.28 sec)
-
src/cmd/vendor/golang.org/x/sys/windows/exec_windows.go
commandLine = append(commandLine, ' ') // TODO(bcmills): since we're already appending to a slice, it would be nice // to avoid the intermediate allocations of EscapeArg. // Perhaps we can factor out an appendEscapedArg function. commandLine = append(commandLine, EscapeArg(arg)...) } return string(commandLine) } // DecomposeCommandLine breaks apart its argument command line into unescaped parts using CommandLineToArgv,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 10 16:32:44 UTC 2023 - 7.3K bytes - Viewed (0) -
src/syscall/exec_windows_test.go
{`\\server\share\file`, `\\server\share\file`}, {`\\newserver\tempshare\really.txt`, `\\newserver\tempshare\really.txt`}, } for _, test := range tests { if got := syscall.EscapeArg(test.input); got != test.output { t.Errorf("EscapeArg(%#q) = %#q, want %#q", test.input, got, test.output) } } } func TestChangingProcessParent(t *testing.T) { if os.Getenv("GO_WANT_HELPER_PROCESS") == "parent" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 05 23:35:29 UTC 2023 - 3.1K bytes - Viewed (0) -
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) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"EpollEvent.Events", Field, 0}, {"EpollEvent.Fd", Field, 0}, {"EpollEvent.Pad", Field, 0}, {"EpollEvent.PadFd", Field, 0}, {"EpollWait", Func, 0}, {"Errno", Type, 0}, {"EscapeArg", Func, 0}, {"Exchangedata", Func, 0}, {"Exec", Func, 0}, {"Exit", Func, 0}, {"ExitProcess", Func, 0}, {"FD_CLOEXEC", Const, 0}, {"FD_SETSIZE", Const, 0},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0)