Skip to content
Myr

Set standard input of 'man' process to os.Stdin

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent 41bcbe3 · Browse files · 1 file+1 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−0 removed

  • other:+1 added−0 removed

1 file+1 added−0 removed

modified:main.go+1 added
86 unmodified lines
87 return88 }89 defer os.Remove(file)90 cmd := exec.Command("man", file)91 cmd.Stdin = os.Stdin92 cmd.Stdout = os.Stdout93 if err := cmd.Run(); err != nil {94 fmt.Print(string(manPage))95 }
6 unmodified lines