Manpage of SHELL
Section: PD Piglet Users Manual (1P)
Updated: PD Piglet Users Manual
Return to Main Contents
SHELL - Run a shell command from within the editor
SHELL [command string] <EOL>
Under most conditions, the user will not need to explicitly type the SHELL
command. When you type a command at the text prompt, Piglet searches for
an internal command of that name. If it doesn't find one to execute,
then it looks through the $PATH variable to see if there is a UNIX command
that can be executed. If so, it spawns a subshell and runs the UNIX command
sending stdout to the terminal. This is a handy facility for running the UNIX
If SHELL is typed with no command string is given, an interactive shell is created.
When the shell is killed, control will return to the Piglet command interpreter.
SHELL uses the $PATH variable to search for UNIX executables. This
variable is inheirited from the Piglet parent process, but may be
queried and modified using the SET command. When entering a new PATH
the argument to SET will need to be quoted to protect the ":" delimiters
from being interpreted as Piglet options.
Rick Walker (walker AT omnisterra DOT com)
The PD Piglet homepage is at http://www.omnisterra.com/walker/linux/piglet/intro.htm.
- SEE ALSO
This document was created by
using the manual pages.
Time: 19:41:46 GMT, May 14, 2010