Enable JLine Event Expansion

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

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

This is enabled by default.

If this feature is enabled, all \ characters are treated as escape characters and they are removed before running the command. If you need to pass \ into an asadmin command, you need to escape it and turn it into \\. This needs to be done even if you enclose the string in quotes.

Enabling 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%