MULTEXT - Document MQL2. SgmlQL reference/Operators.
Exiting the interpreter

The operators bye, exit or quit will cause the calling mtsgmlql shell or mtsgmlql shell script to exit with the exit status specified by the optionnal argument. If the argument is omitted the exit status is set to 0 (The normal exit for a Unix process).

Prototype

null <-- bye | exit | quit [ status ]
The status should be:

  • an integer: The value of the exit status;
  • a boolean: TRUE sets the exit status to 0, FALSE sets the exit status to 1;
  • Example (in a KSH )

  • 2643$ mtsgmlql

    Query[1]$ exit;

    Goodbye !
  • 2644$ echo $?
    0
  • 2645$ mtsgmlql

    Query[1]$ exit 24;

    Goodbye !
  • 2646$ echo $?
    24
  • 2647$ mtsgmlql

    Query[1]$ exit FALSE;

    Goodbye !
  • 2648$ echo $?
    1
    2649$ 




    | Top | SgmlQL reference | LPL/CNRS | MULTEXT

    Copyright © Centre National de la Recherche Scientifique, 1997.