Skip to content

Command-line Usage

Rust-implemented, POSIX-style shell that aims to be compatible with bash.

brush is a work in progress. If you encounter any issues or discrepancies in behavior from bash, please report them at https://github.com/reubeno/brush.

Synopsis

brush [OPTIONS] [SCRIPT_PATH] [SCRIPT_ARGS]...

Arguments

ArgumentDescription
<SCRIPT_PATH>Path to script to execute
<SCRIPT_ARGS>Arguments for script

Options

OptionDescription
--helpDisplay usage information
Possible values: true, false
--versionDisplay shell version
Possible values: true, false
-c <COMMAND>Execute the provided command and then exit
-iRun in interactive mode
-l, --loginMake shell act as if it had been invoked as a login shell
-nDo not execute commands
--noeditingDon’t use readline for input
--noprofileDon’t process any profile/login files (/etc/profile, ~/.bash_profile, ~/.bash_login, ~/.profile)
--norcDon’t process “rc” files if the shell is interactive (e.g., ~/.bashrc, ~/.brushrc)
-O <OPTION>Enable shell option
--posixDisable non-POSIX extensions
-sRead commands from standard input
--shRun in sh compatibility mode
-v, --verbosePrint input when it’s processed
-xPrint commands as they execute
--disable-bracketed-pasteDisable bracketed paste
--log-enable <EVENT>Enable debug logging for classes of tracing events
Possible values: arithmetic, commands, complete, expand, parse, pattern, tokenize