func startTerminalProcess(path string, argv []string) (*os.Process, error) {
	if filepath.Base(path) == path {
		var err error
		path, err = exec.LookPath(path)
		if err != nil {
			return nil, err
		}
	}
	argv = append([]string{path}, argv...)
	if *verbose {
		log.Printf("Process: %v", argv)
	}
	proc, err := os.StartProcess(
		path,
		argv,
		&os.ProcAttr{
			Files: []*os.File{
				os.Stdin,
				os.Stdout,
				os.Stderr,
			},
		},
	)
	return proc, err
}
// startTerminalProcess starts a process and wires it up to the current process'
// stdin, stdout and stderr by passing low-level fds.
startTerminalProcess starts a process and wires it up to the current process'
stdin, stdout and stderr by passing low-level fds.
// startTerminalProcess starts a process and wires it up to the current process ' // stdin stdout and stderr by passing low - level fds .
func startTerminalProcess(path string, argv []string) (*os.Process, error) {
	if filepath.Base(path) == path {
		var err error
		path, err = exec.LookPath(path)
		if err != nil {
			return nil, err
		}
	}
	argv = append([]string{path}, argv...)
	if *verbose {
		log.Printf("Process: %v", argv)
	}
	proc, err := os.StartProcess(
		path,
		argv,
		&os.ProcAttr{
			Files: []*os.File{
				os.Stdin,
				os.Stdout,
				os.Stderr,
			},
		},
	)
	return proc, err
}
func startTerminalProcess ( path string , argv [ ] string ) ( * os . Process , error ) { if filepath . Base ( path ) == path { var err error path , err = exec . LookPath ( path ) if err != nil { return nil , err } } argv = append ( [ ] string { path } , argv ... ) if * verbose { log . Printf ( " " , argv ) } proc , err := os . StartProcess ( path , argv , & os . ProcAttr { Files : [ ] * os . File { os . Stdin , os . Stdout , os . Stderr , } , } , ) return proc , err }
startTerminalProcess starts a process and wires it up to the current process'
stdin, stdout and stderr by passing low-level fds.
startTerminalProcess starts a process and wires it up to the current process ' stdin stdout and stderr by passing low - level fds .