Disable JLine Event Expansion

This feature disables using the Event Designators inside the Asadmin Multimode.

An Event Designator is a reference to a command line entry in the history list.

Event Designators are enabled by default.

If this feature is disabled, the \ characters are not treated as escape characters when parsing the command and they are retained when running the command. The default behavior would treat them as escape characters and if you need to pass \ into an asadmin command, you would need to escape it and turn it into \\. If event expansion is disabled, all \ are passed to Payara Server without any change.

Disabling JLine Event Expansion

Set the environment variable AS_ADMIN_DISABLE_EVENT_EXPANSION to false

For Linux

  1. Open the Terminal

  2. Type the following command

    export AS_ADMIN_DISABLE_EVENT_EXPANSION=false
  3. Check that the variable is set by typing the following command

    echo $AS_ADMIN_DISABLE_EVENT_EXPANSION

For Windows

  1. Open Command Prompt as an Administrator

  2. Type the following commands

    setx AS_ADMIN_DISABLE_EVENT_EXPANSION "false" /m
    set AS_ADMIN_DISABLE_EVENT_EXPANSION=false
  3. Check that the variable is set by typing the following command

    echo %AS_ADMIN_DISABLE_EVENT_EXPANSION%