Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for PathListSeparator (1.44 sec)

  1. src/os/executable_path.go

    	if pathList == "" {
    		return nil
    	}
    	n := 1
    	for i := 0; i < len(pathList); i++ {
    		if pathList[i] == PathListSeparator {
    			n++
    		}
    	}
    	start := 0
    	a := make([]string, n)
    	na := 0
    	for i := 0; i+1 <= len(pathList) && na+1 < n; i++ {
    		if pathList[i] == PathListSeparator {
    			a[na] = pathList[start:i]
    			na++
    			start = i + 1
    		}
    	}
    	a[na] = pathList[start:]
    	return a[:na+1]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  2. src/os/path_plan9.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package os
    
    const (
    	PathSeparator     = '/'    // OS-specific path separator
    	PathListSeparator = '\000' // OS-specific path list separator
    )
    
    // IsPathSeparator reports whether c is a directory separator character.
    func IsPathSeparator(c uint8) bool {
    	return PathSeparator == c
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 30 15:38:09 UTC 2024
    - 443 bytes
    - Viewed (0)
  3. src/cmd/go/internal/base/env.go

    	if runtime.GOOS == "plan9" {
    		pathVar = "path"
    	}
    
    	path := os.Getenv(pathVar)
    	if path == "" {
    		return append(base, pathVar+"="+cfg.GOROOTbin)
    	}
    	return append(base, pathVar+"="+cfg.GOROOTbin+string(os.PathListSeparator)+path)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 25 16:40:59 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  4. src/os/path_unix.go

    // license that can be found in the LICENSE file.
    
    //go:build unix || (js && wasm) || wasip1
    
    package os
    
    const (
    	PathSeparator     = '/' // OS-specific path separator
    	PathListSeparator = ':' // OS-specific path list separator
    )
    
    // IsPathSeparator reports whether c is a directory separator character.
    func IsPathSeparator(c uint8) bool {
    	return PathSeparator == c
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:44:48 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  5. src/os/path_windows.go

    package os
    
    import (
    	"internal/filepathlite"
    	"internal/syscall/windows"
    	"syscall"
    )
    
    const (
    	PathSeparator     = '\\' // OS-specific path separator
    	PathListSeparator = ';'  // OS-specific path list separator
    )
    
    // IsPathSeparator reports whether c is a directory separator character.
    func IsPathSeparator(c uint8) bool {
    	// NOTE: Windows accepts / as path separator.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:44:48 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  6. src/cmd/go/internal/script/state.go

    	envMap := make(map[string]string, len(env))
    
    	// Add entries for ${:} and ${/} to make it easier to write platform-independent
    	// paths in scripts.
    	envMap["/"] = string(os.PathSeparator)
    	envMap[":"] = string(os.PathListSeparator)
    
    	for _, kv := range env {
    		if k, v, ok := strings.Cut(kv, "="); ok {
    			envMap[k] = v
    		}
    	}
    
    	s := &State{
    		ctx:     ctx,
    		cancel:  cancel,
    		workdir: absWork,
    		pwd:     absWork,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 31 20:33:02 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  7. src/os/exec/lp_windows_test.go

    			paths = append(paths, filepath.Clean(d))
    		default:
    			paths = append(paths, filepath.Join(root, d))
    		}
    	}
    	return strings.Join(paths, string(os.PathListSeparator))
    }
    
    // installProgs creates executable files (or symlinks to executable files) at
    // multiple destination paths. It uses root as prefix for all destination files.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 13 19:38:12 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/README

    words, with environment variable expansion within each word and # marking
    an end-of-line comment. Additional variables named ':' and '/' are expanded
    within script arguments (expanding to the value of os.PathListSeparator and
    os.PathSeparator respectively) but are not inherited in subprocess environments.
    
    Adding single quotes around text keeps spaces in that text from being treated
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  9. src/path/filepath/path.go

    package filepath
    
    import (
    	"errors"
    	"internal/bytealg"
    	"internal/filepathlite"
    	"io/fs"
    	"os"
    	"slices"
    )
    
    const (
    	Separator     = os.PathSeparator
    	ListSeparator = os.PathListSeparator
    )
    
    // Clean returns the shortest path name equivalent to path
    // by purely lexical processing. It applies the following rules
    // iteratively until no further processing can be done:
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  10. src/cmd/go/internal/script/engine.go

    // words, with environment variable expansion within each word and # marking an
    // end-of-line comment. Additional variables named ':' and '/' are expanded
    // within script arguments (expanding to the value of os.PathListSeparator and
    // os.PathSeparator respectively) but are not inherited in subprocess
    // environments.
    //
    // Adding single quotes around text keeps spaces in that text from being treated
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 27 01:16:19 UTC 2023
    - 22.2K bytes
    - Viewed (0)
Back to top