// maskErrDotCmd reverts the behavior of osexec.Cmd to what it was before go1.19 // specifically set the Err field to nil (LookPath returns a new error when the file // is resolved to the current directory. func maskErrDotCmd(cmd *osexec.Cmd) *osexec.Cmd { … } func maskErrDot(err error) error { … }