The -TEXT command checks the setting of the TEXTEVAL system variable. When the TEXTEVAL system variable is set to 1, AutoLISP ® expressions are evaluated when the -TEXT command ends. AutoLISP expressions that are entered using this method must begin with an exclamation point or left parenthesis.
The -TEXT command checks the setting of the TEXTEVAL system variable setting only if it is used in a script or AutoLISP expression and all the command prompts are responded to within the script or an AutoLISP expression.