diff --git a/nucleus/admin/cli/src/main/java/com/sun/enterprise/admin/cli/CLICommand.java b/nucleus/admin/cli/src/main/java/com/sun/enterprise/admin/cli/CLICommand.java index 11ec17c1843..46908a8f17f 100644 --- a/nucleus/admin/cli/src/main/java/com/sun/enterprise/admin/cli/CLICommand.java +++ b/nucleus/admin/cli/src/main/java/com/sun/enterprise/admin/cli/CLICommand.java @@ -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) {