Send Feedback
Skip to content

exit

Terminate KDB-X

exit x    exit[x]

Control word. Where x is a positive integer, terminates the KDB-X process with x as the exit code.

q)exit 0        / typical successful exit status
..

q)exit 42
$ echo $?
42

No confirmation is requested from the console.

Exit is blocked during reval or with -u on the command line. (Since V4.1t 2021-07-12.)


.z.exit (action on exit)

Controlling evaluation, Debugging