Next: , Previous: , Up: stdlib   [Index]


5.10 Command line access and exit values

The procedures described in this section are exported by the (rnrs programs (6)) library.

Procedure: command-line

Return a nonempty list of strings. The first element is an implementation–specific name for the running top–level program. The remaining elements are command–line arguments according to the operating system’s conventions.

Procedure: exit
Procedure: exit obj

Exit the running program and communicates an exit value to the operating system.

If no argument is supplied, the exit procedure should communicate to the operating system that the program exited normally.

If an argument is supplied, the exit procedure should translate the argument into an appropriate exit value for the operating system. If obj is #f, the exit is assumed to be abnormal.

NOTE Vicare implements exit hooks that can be evaluated whenever exit is called; exit-hooks.