10 func shellRun(line string) (string, error) {
11 shell := os.Getenv("COMSPEC")
12 b, err := exec.Command(shell, "/c", line).Output()
14 if eerr, ok := err.(*exec.ExitError); ok {
17 return "", errors.New(err.Error() + ":" + string(b))
19 return strings.TrimSpace(string(b)), nil