Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for EscapeArg (0.29 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. api/go1.txt

    pkg syscall (windows-386), func DnsRecordListFree(*DNSRecord, uint32)
    pkg syscall (windows-386), func DuplicateHandle(Handle, Handle, Handle, *Handle, uint32, bool, uint32) error
    pkg syscall (windows-386), func EscapeArg(string) string
    pkg syscall (windows-386), func ExitProcess(uint32)
    pkg syscall (windows-386), func Fchdir(Handle) error
    pkg syscall (windows-386), func Fchmod(Handle, uint32) error
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top