Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for execerrdot (0.13 sec)

  1. src/os/exec/lp_windows.go

    		dotf   string
    		dotErr error
    	)
    	if _, found := syscall.Getenv("NoDefaultCurrentDirectoryInExePath"); !found {
    		if f, err := findExecutable(filepath.Join(".", file), exts); err == nil {
    			if execerrdot.Value() == "0" {
    				execerrdot.IncNonDefault()
    				return f, nil
    			}
    			dotf, dotErr = f, &Error{file, ErrDot}
    		}
    	}
    
    	path := os.Getenv("path")
    	for _, dir := range filepath.SplitList(path) {
    		if dir == "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:12 UTC 2024
    - 6K bytes
    - Viewed (0)
  2. src/os/exec/lp_plan9.go

    	for _, dir := range filepath.SplitList(path) {
    		path := filepath.Join(dir, file)
    		if err := findExecutable(path); err == nil {
    			if !filepath.IsAbs(path) {
    				if execerrdot.Value() != "0" {
    					return path, &Error{file, ErrDot}
    				}
    				execerrdot.IncNonDefault()
    			}
    			return path, nil
    		}
    	}
    	return "", &Error{file, ErrNotFound}
    }
    
    // lookExtensions is a no-op on non-Windows platforms, since
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:12 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  3. src/os/exec/lp_unix.go

    			dir = "."
    		}
    		path := filepath.Join(dir, file)
    		if err := findExecutable(path); err == nil {
    			if !filepath.IsAbs(path) {
    				if execerrdot.Value() != "0" {
    					return path, &Error{file, ErrDot}
    				}
    				execerrdot.IncNonDefault()
    			}
    			return path, nil
    		}
    	}
    	return "", &Error{file, ErrNotFound}
    }
    
    // lookExtensions is a no-op on non-Windows platforms, since
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:12 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  4. src/os/exec/dot_test.go

    	// Add "." to PATH so that exec.LookPath looks in the current directory on all systems.
    	// And try to trick it with "../testdir" too.
    	for _, errdot := range []string{"1", "0"} {
    		t.Run("GODEBUG=execerrdot="+errdot, func(t *testing.T) {
    			t.Setenv("GODEBUG", "execerrdot="+errdot+",execwait=2")
    			for _, dir := range []string{".", "../testdir"} {
    				t.Run(pathVar+"="+dir, func(t *testing.T) {
    					t.Setenv(pathVar, dir+string(filepath.ListSeparator)+origPath)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 13 18:19:21 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  5. src/internal/godebugs/table.go

    // (Otherwise the test in this package will fail.)
    var All = []Info{
    	{Name: "asynctimerchan", Package: "time", Changed: 23, Old: "1", Opaque: true},
    	{Name: "execerrdot", Package: "os/exec"},
    	{Name: "gocachehash", Package: "cmd/go"},
    	{Name: "gocachetest", Package: "cmd/go"},
    	{Name: "gocacheverify", Package: "cmd/go"},
    	{Name: "gotypesalias", Package: "go/types", Changed: 23, Old: "0"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:58:43 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  6. src/os/exec/exec.go

    	// command completed, or no WaitDelay was set, or the WaitDelay already
    	// expired and its effect was already applied.)
    	timer *time.Timer
    }
    
    var execwait = godebug.New("#execwait")
    var execerrdot = godebug.New("execerrdot")
    
    // Command returns the [Cmd] struct to execute the named program with
    // the given arguments.
    //
    // It sets only the Path and Args in the returned structure.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 20:13:53 UTC 2024
    - 41.4K bytes
    - Viewed (0)
  7. doc/godebug.md

    There is no plan to remove any of these settings.
    
    ### Go 1.19
    
    Go 1.19 made it an error for path lookups to resolve to binaries in the current directory,
    controlled by the [`execerrdot` setting](/pkg/os/exec#hdr-Executables_in_the_current_directory).
    There is no plan to remove this setting.
    
    ### Go 1.18
    
    Go 1.18 removed support for SHA1 in most X.509 certificates,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  8. src/runtime/metrics/doc.go

    	/gc/stack/starting-size:bytes
    		The stack size of new goroutines.
    
    	/godebug/non-default-behavior/execerrdot:events
    		The number of non-default behaviors executed by the os/exec
    		package due to a non-default GODEBUG=execerrdot=... setting.
    
    	/godebug/non-default-behavior/gocachehash:events
    		The number of non-default behaviors executed by the cmd/go
    		package due to a non-default GODEBUG=gocachehash=... setting.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:58:43 UTC 2024
    - 20K bytes
    - Viewed (0)
  9. pkg/kubelet/prober/prober_test.go

    	execProbe := &v1.Probe{
    		ProbeHandler: v1.ProbeHandler{
    			Exec: &v1.ExecAction{},
    		},
    	}
    	tests := []struct {
    		probe          *v1.Probe
    		env            []v1.EnvVar
    		execError      bool
    		expectError    bool
    		execResult     probe.Result
    		expectedResult results.Result
    		expectCommand  []string
    	}{
    		{ // No probe
    			probe:          nil,
    			expectedResult: results.Success,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 07:17:35 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  10. api/go1.6.txt

    pkg strconv, func QuoteToGraphic(string) string
    pkg text/template, func IsTrue(interface{}) (bool, bool)
    pkg text/template, method (ExecError) Error() string
    pkg text/template, type ExecError struct
    pkg text/template, type ExecError struct, Err error
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 13 23:40:13 UTC 2016
    - 12.9K bytes
    - Viewed (0)
Back to top