path_unix.go 513 B

1234567891011121314
  1. // +build !windows
  2. package system
  3. // DefaultPathEnv is unix style list of directories to search for
  4. // executables. Each directory is separated from the next by a colon
  5. // ':' character .
  6. const DefaultPathEnv = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
  7. // CheckSystemDriveAndRemoveDriveLetter verifies that a path, if it includes a drive letter,
  8. // is the system drive. This is a no-op on Linux.
  9. func CheckSystemDriveAndRemoveDriveLetter(path string) (string, error) {
  10. return path, nil
  11. }