sh, shell
sh( [t_command] ) =>t/nilshell( [t_command] ) =>t/nil
Description
Starts the UNIX Bourne shell sh as a child process to execute a command string.
If the sh function is called with no arguments, an interactive UNIX shell is invoked that prompts you for UNIX command input (available only in nongraphic applications).
Arguments
Value Returned
|
The exit status of executing the given shell command is not 0. |
Examples
Removes the junk file from the /tmp directory and returns t if it is removed successfully.
shell("rm /tmp/junk")
Related Topics
Return to top