Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for PATHEXT (0.13 sec)

  1. src/os/exec/lp_windows.go

    func LookPath(file string) (string, error) {
    	return lookPath(file, pathExt())
    }
    
    // lookExtensions finds windows executable by its dir and path.
    // It uses LookPath to try appropriate extensions.
    // lookExtensions does not search PATH, instead it converts `prog` into `.\prog`.
    //
    // If the path already has an extension found in PATHEXT,
    // lookExtensions returns it directly without searching
    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/cmd/go/internal/toolchain/path_windows.go

    import (
    	"io/fs"
    	"os"
    	"path/filepath"
    	"strings"
    	"sync"
    
    	"cmd/go/internal/gover"
    )
    
    // pathExts is a cached PATHEXT list.
    var pathExts struct {
    	once sync.Once
    	list []string
    }
    
    func initPathExts() {
    	var exts []string
    	x := os.Getenv(`PATHEXT`)
    	if x != "" {
    		for _, e := range strings.Split(strings.ToLower(x), `;`) {
    			if e == "" {
    				continue
    			}
    			if e[0] != '.' {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 31 15:15:19 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  3. build-logic/jvm/src/main/kotlin/gradlebuild/propagated-env-variables.kt

        // Simply putting PATH there isn't enough. Windows has case-insensitive env vars but something else fails if the Path variable is published as PATH for test tasks.
        OperatingSystem.current().pathVar,
        "PATHEXT",
    )
    
    
    val credentialsKeywords = listOf(
        "api_key",
        "access_key",
        "apikey",
        "accesskey",
        "password",
        "token",
        "credential",
        "auth"
    )
    
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 18 01:52:16 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  4. pkg/volume/flexvolume/flexvolume_test.go

    // extensions from $env:PATHEXT (in order) and run that file with that extension.
    // For example, if we have the file C:\\foo.bat, we can run C:\\foo.
    // For these tests, .bat was chosen since it's one of the default values in $env.PATHEXT. .ps1 is
    // not in that list, but it might be useful for flexvolumes to be able to handle powershell scripts.
    // There's no argument count variable in batch. Instead, we can check that the n-th argument
    // is an empty string.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 01 15:56:32 UTC 2022
    - 6.8K bytes
    - Viewed (0)
Back to top