Shell(1) - SerenityOS man pages

#Name

Shell - command language interpreter

#Synopsis

$ Shell [--skip-shellrc] [--live-formatting]
$ Shell [--skip-shellrc] command_file [arguments...]
$ Shell [--skip-shellrc] -c command_string [arguments...]
$ Shell [--skip-shellrc] --format command_file

#Description

The Shell utility is a command language interpreter, which reads commands from either a command string, a specified file, or the standard input. The command language shall be described in Shell(5), The Shell Command Language.

Any extra arguments passed into arguments are placed in the local variable $ARGV and can also be accessed through the special variable $*.

NOTE:

The Shell utility does not promise POSIX sh interoperability.

#Options

#Examples

# Start an interactive REPL, ignoring the shellrc
Shell --skip-shellrc

# Execute a given string
Shell -c 'rm foo*'

# Execute the contents of a file with some arguments
Shell foo a b c

#See also