Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for PWD (0.24 sec)

  1. src/cmd/dist/build.go

    	pwd := xgetwd()
    	src := pathf("%s/src/", goroot)
    	real_src := xrealwd(src)
    	if !strings.HasPrefix(pwd, real_src) {
    		fatalf("current directory %s is not under %s", pwd, real_src)
    	}
    	pwd = pwd[len(real_src):]
    	// guard against xrealwd returning the directory without the trailing /
    	pwd = strings.TrimPrefix(pwd, "/")
    
    	return pwd
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 18:34:40 UTC 2024
    - 54K bytes
    - Viewed (0)
  2. src/os/os_test.go

    			f0, err := Stat(".")
    			if err != nil {
    				t.Error(err)
    				return
    			}
    			pwd, err := Getwd()
    			if err != nil {
    				t.Errorf("Getwd: %v", err)
    				return
    			}
    			if pwd != d {
    				t.Errorf("Getwd() = %q, want %q", pwd, d)
    				return
    			}
    			f1, err := Stat(pwd)
    			if err != nil {
    				t.Error(err)
    				return
    			}
    			if !SameFile(f0, f1) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 83.1K bytes
    - Viewed (0)
  3. src/cmd/go/go_test.go

    				tg.t.Fatalf("internal testsuite error: call to parallel with testdata in environment (%s)", e)
    			}
    		}
    	}
    	tg.inParallel = true
    	tg.t.Parallel()
    }
    
    // pwd returns the current directory.
    func (tg *testgoData) pwd() string {
    	tg.t.Helper()
    	wd, err := os.Getwd()
    	if err != nil {
    		tg.t.Fatalf("could not get working directory: %v", err)
    	}
    	return wd
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 81.1K bytes
    - Viewed (0)
  4. src/cmd/internal/testdir/testdir_test.go

    		if runInDir != "" {
    			cmd.Dir = runInDir
    			// Set PWD to match Dir to speed up os.Getwd in the child process.
    			cmd.Env = append(cmd.Env, "PWD="+cmd.Dir)
    		} else {
    			// Default to running in the GOROOT/test directory.
    			cmd.Dir = t.gorootTestDir
    			// Set PWD to match Dir to speed up os.Getwd in the child process.
    			cmd.Env = append(cmd.Env, "PWD="+cmd.Dir)
    		}
    		if tempDirIsGOPATH {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:08:06 UTC 2024
    - 57.5K bytes
    - Viewed (0)
  5. src/cmd/go/internal/test/test.go

    		case "getenv":
    			fmt.Fprintf(h, "env %s %x\n", name, hashGetenv(name))
    		case "chdir":
    			pwd = name // always absolute
    			fmt.Fprintf(h, "chdir %s %x\n", name, hashStat(name))
    		case "stat":
    			if !filepath.IsAbs(name) {
    				name = filepath.Join(pwd, name)
    			}
    			if a.Package.Root == "" || search.InDir(name, a.Package.Root) == "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 71.9K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/sys/unix/syscall_zos_s390x.go

    // executable name should also be the first argument in argv (["ls", "-l"]).
    // envv are the environment variables that should be passed to the new
    // process (["USER=go", "PWD=/tmp"]).
    func Exec(argv0 string, argv []string, envv []string) error {
    	return syscall.Exec(argv0, argv, envv)
    }
    
    func Getag(path string) (ccsid uint16, flag uint16, err error) {
    	var val [8]byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 84.4K bytes
    - Viewed (0)
Back to top