We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52d509e commit dfc0913Copy full SHA for dfc0913
cabal-install/src/Distribution/Client/Manpage.hs
@@ -82,13 +82,13 @@ manpageCmd pname commands flags
82
-- 'less' is borked with color sequences otherwise
83
let pagerArgs = if takeFileName pager == "less" then ["-R"] else []
84
-- Pipe output of @nroff@ into @less@
85
- (exitcode, _) <- rawSystemProcAction verbosity
86
- (proc pager pagerArgs) { Process.std_in = Process.CreatePipe }
+ (ec2, _) <- rawSystemProcAction verbosity
+ (proc pager pagerArgs) { Process.std_in = Process.CreatePipe }
87
$ \mIn _ _ -> do
88
let wIn = fromCreatePipe mIn
89
hPutStr wIn formatted
90
hClose wIn
91
- exitWith exitcode
+ exitWith ec2
92
where
93
contents :: String
94
contents = manpage pname commands
0 commit comments