Shell Script Source Code Builder
EditRocket provides information on the following Shell Script Library routines in the Shell Script source code builder included in EditRocket:
alias [alias-name[=string] ...] - define or display aliases
bg [job_id ...] - runs jobs in the background
cd [-L | -P] [directory] - change the working directory
command [-p] command_name [argument ...] or command [ -v | -V ] command_name - execute a simple command
echo [-neE] [arg ...] - prints a string
eval [arguments] - The arguments are concatenated together into a single command, which is then read and executed, and its exit status returned as the exit status of eval.
exec [-cl] [-a name] [command [arguments]] - If command is supplied, it replaces the shell without creating a new process. If the -l option is supplied, the shell places a dash at the beginning of the zeroth arg passed to command. This is what the login program does. The -c option causes command to be executed with an empty environment. If -a is supplied, the shell passes name as the zeroth argument to command. If no command is specified, redirections may be used to affect the current shell environment. If there are no redirection errors, the return status is zero; otherwise the return status is non-zero.
exit [n] - Exit the shell, returning a status of n to the shell's parent. If n is omitted, the exit status is that of the last command executed.
export [-fn] [-p] [name[=value]] - Mark each name to be passed to child processes in the environment. If the -f option is supplied, the names refer to shell functions; otherwise the names refer to shell variables. The -n option means to no longer mark each name for export. If no names are supplied, or if the -p option is given, a list of exported names is displayed. The -p option displays output in a form that may be reused as input. If a variable name is followed by =value, the value of the variable is set to value.
fc [-r][-e editor] [first[last]] or fc -l[-nr] [first[last]] or fc -s[old=new][first] - process the command history list
fg [job_id] - runs jobs in the foreground
getopts optstring name [arg...] - parse utility options
hash [-r] [-p filename] [-dt] [name] - Remember the full pathnames of commands specified as name arguments, so they need not be searched for on subsequent invocations.
jobs [-l| -p][job_id...] - display status of jobs in the current session
kill -s signal_name pid ... or kill -l [exit_status] or kill [-signal_name] pid ... or kill [-signal_number] pid ... - terminate or signal processes
newgrp [-l][group] - change to a new group
printf [-v var] format [arguments] - Write the formatted arguments to the standard output under the control of the format.
pwd [-L | -P ] - return working directory name
read [-r] var... - read a line from standard input
readonly [-apf] [name[=value]] ... - mark each name as readonly
set [--abefhkmnptuvxBCHP] [-o option] [argument ...] - If no options or arguments are supplied, set displays the names and values of all shell variables and functions, sorted according to the current locale, in a format that may be reused as input for setting or resetting the currently-set variables. Read-only variables cannot be reset. In posix mode, only shell variables are listed. When options are supplied, they set or unset shell attributes.
shift [n] - Shift the positional parameters to the left by n.
test expr - test
trap [-lp] [arg] [sigspec ...] -
type [-afptP] [name ...] - For each name, indicate how it would be interpreted if used as a command name.
ulimit [-acdefilmnpqrstuvxSH] [limit] - ulimit provides control over the resources available to processes started by the shell, on systems that allow such control.
umask [-S][mask] - get or set the file mode creation mask
unalias alias-name... or unalias -a - remove alias definitions
unset [-fv] [name] - Each variable or function name is removed.
wait [pid...] - await process completion