A string containing the home directory of the user.
Returns a nonempty list of strings. The first element is an implementation-specific name for the running top-level program. (For now this is just
"kawa", but it may become something more useful in the future.) The remaining elements are the command-line arguments, as passed to the
Any command-line arguments (following flags processed by Kawa itself) are assigned to the global variable ‘
command-line-arguments’, which is a vector of strings.
Process any initial command-line options that set variables. These have the form
. Any such command-line options (at the start of the command-line) are processed and removed from the command-line.
value$ kawa -- abc=123 def #|kawa:1|# (command-line) (kawa abc=123 def) #|kawa:2|# (process-command-line-assignments) #|kawa:3|# (command-line) (kawa def) #|kawa:4|# abc 123
This function is mostly useful for Kawa applications compiled with the
--mainoption. (It is used to set XQuery
Exits the Kawa interpreter, and ends the Java session. The integer value
codeis returned to the operating system. If
codeis not specified, zero is returned, indicating normal (non-error) termination. If the
#f, it is treated as -1, which means an abnormal exit.
<java.lang.Process>object, using the specified
commandis converted to an array of Java strings (that is an object that has type
<java.lang.String>. It can be a Scheme vector or list (whose elements should be Java strings or Scheme strings); a Java array of Java strings; or a Scheme string. In the latter case, the command is converted using
envpis process environment; it should be either a Java array of Java strings, or the special
Runs the specified
command, and waits for it to finish. Returns the return code from the command. The return code is an integer, where 0 conventionally means successful completion. The
commandcan be any of the types handled by
The value of this variable should be a one-argument procedure. It is used to convert a command from a Scheme string to a Java array of the constituent "words". The default binding, on Unix-like systems, returns a new command to invoke
"/bin/sh" "-c"concatenated with the command string; on non-Unix-systems, it is bound to
java.util.StringTokenizerto parse the
commandstring into an array of words. This splits the
commandusing spaces to delimit words; there is no special processing for quotes or other special characters. (This is the same as what