4.4 Shell Commands
procedure
command : string-tree? options : hash? = (hash)
The command strings are combined into a single command string in the same as by build-shell. Spaces in a command are left as-is; so, for example, "ls -a" as a sole command string is the same as a sequence "ls" then "-a". Use string->shell to protect characters like spaces, and especially to convert from a path (that might have spaces or other special characters) to part of a command.
procedure
(shell/wait command ... [options]) → void?
command : string-tree? options : hash? = (hash)
If options includes 'quiet? mapped to a true value, then command is not shown using displayln. If options includes 'desc mapped to a string value, the string is used in place of "shell command" when reporting an error. Any 'quiet?, 'no-thread?, or 'desc mapping is removed from options before passing it on to process.
procedure
(build-shell shell-strs ...) → string?
shell-strs : string-tree?
Note that build-shell does not attempt to protect any of the shell-strs as a literal. Use string->shell to convert an individual path or literal string to a shell-command argument encoding that string.
procedure
(shell-subst str vars) → string?
str : string? vars : hash?