Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions shell/src/main/java/org/apache/accumulo/shell/Shell.java
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ public boolean config(String... args) throws IOException {
TerminalBuilder.builder().jansi(false).systemOutput(SystemOutput.SysOut).build();
}
if (this.reader == null) {
this.reader = LineReaderBuilder.builder().terminal(this.terminal).build();
this.reader = newLineReaderBuilder().terminal(this.terminal).build();
}
this.writer = this.terminal.writer();

Expand Down Expand Up @@ -557,8 +557,17 @@ public void execute(final String[] args) throws IOException {
}
}

private static LineReaderBuilder newLineReaderBuilder() {
var builder = LineReaderBuilder.builder();
// workaround for https://github.com/jline/jline3/pull/1413
if ("on".equals(System.getProperty("org.jline.reader.props.disable-event-expansion"))) {
builder.option(LineReader.Option.DISABLE_EVENT_EXPANSION, true);
}
return builder;
}

public static void main(String[] args) throws IOException {
LineReader reader = LineReaderBuilder.builder().build();
LineReader reader = newLineReaderBuilder().build();
new Shell(reader).execute(args);
}

Expand Down