You are looking at historical revision 21107 of this page. It may differ significantly from its current revision.
Invoke shell commands
run[syntax] (run COMMAND ...)
Invokes each COMMAND as a shell command. COMMAND may be of any data type and is flattened and converted to a string. COMMAND is also implicitly quasiquoted so subexpressions may be computed at run-time by unquoting them. Returns an unspecified value.
run*[syntax] (run* COMMAND ...)
Similar to run but returns the return status of each command as multiple result values.
shell[syntax] (shell COMMAND ...)
Returns a procedure that, when invoked will run the given shell commands. The procedure accepts the same keyword arguments as execute. Note that unquoted subexpressions in the command-list are evaluated when the procedure is invoked, not when it is created.
execute[procedure] (execute COMMANDLIST #!key status verbose)
Converts COMMANDLIST to a string by flattening the list-structure of each command and interspersing it with whitespace (" ") and invokes it as a shell command. If status is given and true, then execute returns the exit status, with one result value for each element in COMMANDLIST. If verbose is given and true, it overrides the current setting of shell-verbose.
When true, shell commands invoked via run, run* and shell are displayed on the port given by (current-output-port).
This code is in the public domain
- initial version