Skip to content

Commit

Permalink
Merge pull request payara#5299 from payara/FISH-1423-disable-escaping…
Browse files Browse the repository at this point in the history
…-asadmin

FISH-1423 disable escaping asadmin
  • Loading branch information
kalinchan authored and JamesHillyard committed Oct 8, 2021
1 parent f1eaad7 commit 6327682
Showing 1 changed file with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1445,14 +1445,21 @@ protected void buildLineReader() {
.build();
}
}


protected LineReaderBuilder newLineReaderBuilder() {
// In community this should be disabled by default
boolean disabled = true;
Environment environment = this.env;
if(environment.hasOption("DISABLE_EVENT_EXPANSION")) {
disabled = environment.getBooleanOption("DISABLE_EVENT_EXPANSION");
}
return LineReaderBuilder.builder()
.appName(ASADMIN)
// disable event expansion because it swallows backslashes and we don't need to support events
.option(LineReader.Option.DISABLE_EVENT_EXPANSION, true);
.appName(ASADMIN)
// disable event expansion because it swallows backslashes and we don't need to support events
.option(LineReader.Option.DISABLE_EVENT_EXPANSION, disabled);
}

protected void closeTerminal() {
try {
if (terminal != null) {
Expand Down

0 comments on commit 6327682

Please sign in to comment.