Skip to content

Commit

Permalink
Fix stderr redirection (jesseduffield#3479)
Browse files Browse the repository at this point in the history
- **PR Description**

Seems that there's a problem in the Stdout/Stderr/Stdin stream vars
assignments,
probably copy-paste issue.

If this is intentional, I suggest adding an explanation on why `Stderr`
-> `Stdout` intentionally to avoid other PRs and confused people around
:)

Thanks!
  • Loading branch information
stefanhaller authored Apr 9, 2024
2 parents fab7ca2 + a63c660 commit 4ba8560
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/gui/gui.go
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,7 @@ func (gui *Gui) runSubprocess(cmdObj oscommands.ICmdObj) error { //nolint:unpara

subprocess := cmdObj.GetCmd()
subprocess.Stdout = os.Stdout
subprocess.Stderr = os.Stdout
subprocess.Stderr = os.Stderr
subprocess.Stdin = os.Stdin

fmt.Fprintf(os.Stdout, "\n%s\n\n", style.FgBlue.Sprint("+ "+strings.Join(subprocess.Args, " ")))
Expand Down

0 comments on commit 4ba8560

Please sign in to comment.