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 b9e9375 commit 5a1f468Copy full SHA for 5a1f468
src/launcher/java/org/truffleruby/launcher/RubyLauncher.java
@@ -191,9 +191,9 @@ protected boolean runLauncherAction() {
191
String pager;
192
if (helpOptionUsed && System.console() != null && !(pager = getPagerFromEnv()).isEmpty()) {
193
try {
194
- Process process = new ProcessBuilder(pager)
195
- .redirectOutput(Redirect.INHERIT)
196
- .redirectErrorStream(true)
+ Process process = new ProcessBuilder(pager.split(" "))
+ .redirectOutput(Redirect.INHERIT) // set the output of the pager to the terminal and not a pipe
+ .redirectError(Redirect.INHERIT) // set the error of the pager to the terminal and not a pipe
197
.start();
198
PrintStream out = new PrintStream(process.getOutputStream());
199
0 commit comments