Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for EscapeArg (0.11 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)
Back to top