execabs_go119.go 376 B

1234567891011121314151617181920
  1. // Copyright 2022 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. //go:build go1.19
  5. package execabs
  6. import (
  7. "errors"
  8. "os/exec"
  9. )
  10. func isGo119ErrDot(err error) bool {
  11. return errors.Is(err, exec.ErrDot)
  12. }
  13. func isGo119ErrFieldSet(cmd *exec.Cmd) bool {
  14. return cmd.Err != nil
  15. }